Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
Home/ Questions/Q 81956
In Process
Question
Maram
  • 0
MaramExplorer
Asked: March 21, 20232023-03-21T23:43:00+03:00 2023-03-21T23:43:00+03:00In: Oracle Ebs Api’s

API to close workflow notifications in Oracle APPS R12

  • 0

Can somebody provide some guidance on how to use the API to close workflow notifications in Oracle APPS R12? I am having trouble figuring out the proper syntax and steps to take.

any help will be appreciated.

  • 1 1 Answer
  • 321 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    Related Questions

    • INV_ITEM_CATEGORY_PUB.update_category_assignment API returned status 'E' but without error message
    • Payables Import Invoices
    • API to update AR invoice in oracle apps R12?
    • How to Cancel payable invoice using API in oracle apps?
    • ORA-06503: PL/SQL: Function returned without value in Package INV_Validate_Trolin Procedure Attributes

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
      2023-03-21T23:57:29+03:00Added an answer on March 21, 2023 at 11:57 pm

      You can use the following script to close a workflow notification from the backend using API:

      
      ------------------------------------------
      -- Description: API to close Workflow Notification in oracle EBS R12
      --   nid - Notification Id
      --   resp - Respond Required?  0 - No, 1 - Yes
      --   responder - User or role close this notification
      -- Created By: Hassan @ Oraask.com
      -- Creation Date: 21-MAR-2023
      ------------------------------------------
      
      DECLARE
      L_RESPONDER FND_USER.USER_NAME%TYPE := 'SYYADMIN';
      
      CURSOR NOTIFICATIONS_CUR
      IS
      --
      --Modify the below query as per your requirement
      --
      SELECT ITEM_KEY, NOTIFICATION_ID, RECIPIENT_ROLE
      FROM WF_NOTIFICATIONS
      WHERE MESSAGE_TYPE LIKE '%HRSSA%'
      AND STATUS = 'OPEN'
      AND NOTIFICATION_ID = NVL ( :P_NOTIFICATION_ID, NOTIFICATION_ID);
      BEGIN
      --
      FOR NOTIFICATIONS_REC IN NOTIFICATIONS_CUR
      LOOP
      BEGIN
      --
      WF_NOTIFICATION.CLOSE (NID => NOTIFICATIONS_REC.NOTIFICATION_ID, RESPONDER => L_RESPONDER);
      
      DBMS_OUTPUT.PUT_LINE ('Closing Notification ID: ' || NOTIFICATIONS_REC.NOTIFICATION_ID);
      --
      END;
      END LOOP;
      
      --
      COMMIT;
      --
      END;
      
      

      In the above example we created a cursor that fetchs the open notifications in HRMS which is HRSSA workflow item type and we have used the NOTIFICATION_ID if we need to close specific notification. We have used WF_NOTIFICATION standard package to achieve our goal.

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Adv 250x250

    Explore

    • Categories
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Dev Tools
      • Online Compiler
      • Base64 Converter
    • Wiki
      • SQL Tutorials
      • Java Tutorials
      • Python Tutorials
      • JavaScript Tutorials

    Footer

    Oraask

    About

    Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

    About Us

    • About Us
    • Contact Us

    Legal Stuff

    • Privacy Policy
    • Terms & Conditions

    Follow

    Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

    © 2019 Oraask. All Rights Reserved
    With Love by Oraask.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.