flow designer

rognomolta
Tera Contributor

Hi 

I new to flow designer and below is my requriment

The Okta API will lock out the token if it is not utilized for 30 days. We want a schedule flow created that will run a basic Okta function. Create a system property that will hold the test ID we will use for the action

sys properties entry

  • Name: test user id

  • Description: User ID used in the Okta API  Test flow to verify the Okta Token is valid

  • value: testuser@expamle.com

Flow scheduled to run every 25 days

  • Name : Okta API Test

  • Run AS: System Administrator

  1. Lookup user id held in system property

  2. Call action ā€œIs User Account Lockedā€ (input user id from previous step)

  3. If the step returns ā€œinvalid tokenā€

    1. Generate URL

      1. Record ID: Current flow engine context ID

      2. Table Name: sys flow context

      3. Display: Flow Context Error Record

    2. create and Incident record assigned to the ServiceNow team

      1. Caller: Testnow Automation

      2. Channel: Event

      3. Assigned Group: testNOW

      4. Category: Failure

      5. Configuration Item: TestNow (Business Service Class)

      6. Short Description: Okta Integration failed with Invalid Token

      7. Description: The Okta Integration Keep-alive flow has failed due to Invalid Token

      8. Urgency: 2

      9. Impact: 3

      10. Work Notes: ā€œReview the Context Error Record and take appropriate action. The Token is most likely locked on the Okta Side.
        #'Code' output from the generate URL step noted above#ā€
        i have created the flow designer as per my understanding sharing screenshot for reffernces

        rognomolta_0-1727271688302.png

        for detailed view:
        rognomolta_1-1727271744893.pngrognomolta_2-1727271841633.pngrognomolta_3-1727271866359.png
        rognomolta_5-1727272048010.png

         


        i'm having trouble in adding below  fields in worknote with the url 

        1. Record ID

        2. Table Name

        3. Display

        Please correct me if i did any wrong  in my logic and please guide or assist how to add the above  3 fields  in the worknotes

        @Ankur Bawiskar @Dr Atul G- LNG 

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

@Sandeep Rajput  @AshishKM  experts here.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************