How to Check request source in Sailpoint

here i need to check if the source is from ServiceNow autoapprove (initializer =none)it else just let initializer be “manager, owner” …but how to check if the source is from ServiceNow or not

<Variable initializer="manager, owner" input="true" name="approvalScheme"/>

 <Step condition="script:((flow == null) ||  (!&quot;UnlockAccount&quot;.equals(flow)))" icon="Task" name="Pre Split Approve" posX="518" posY="63">
    <Arg name="approvalScheme">
      <Script>
        <Source>
                import java.util.List;
                import java.util.ArrayList;
                import java.util.Iterator;
                import sailpoint.tools.Util;

                List schemes = Util.csvToList(approvalScheme);
                List preSchemes = new ArrayList&lt;String>();
                for (String s : Util.safeIterable(schemes)) {
                  if (s.equals(approvalSplitPoint)) {
                      break;
                  } else {
                      preSchemes.add(s);
                  }
                }
                return Util.listToCsv(preSchemes);
            </Source>
      </Script>
    </Arg>

@autorun6464

Are you calling this workflow from service now using Launch workflow?
if so try to pass a workflow attribute flow or something similar and check against that

Nope i am calling this workflow from identityiiq … here i just need to check if the request source is Service now autoapprove it else rest will go to manager, owner…

I just need code logic to add to check if the request source is from service now or not

Hi @autorun6464,

The source indicating where the request originated. This is a string representation of the sailpoint.object.Source enumeration. The default value of source is LCM.

How are you trigger the workflow in IdentityIQ?
What you are referring the “request source”?
Could you trigger the workflow and share the logs?

1 Like

@autorun6464, Source provides information about how request is generated and it is enum value, you can check the source value from administrator console for provisioning transactions.

1 Like

Right now according to what i under stand the request source is LCM and its going for approval for manager or owner… when i send request from service now its still going to owner … so i just wanted to know if there is any way to check maybe sailpoint.object.Source has ServiceNow so that we can set to none implying autoapprove it… Correct me if i am geeting it wrong

like if i send request from ServiceNow to sailpoint it should be autoapprove

Hi @autorun6464,

How are you sending request from serviceNow? using launch workflow api?
Can you send the request from serviceNow and share the logs?

Regards,
Arun

Actually its access request LCM provisioning workflow. here i can i check if the request os from
Service now or not or do i need to change in approval sub process

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.