pallavi
(Pallavi Chaudhari)
July 15, 2024, 12:31pm
1
Hello All,
We are working on SailPoint IIQ and SalesForce integration. We would like to know how can we get the ‘uniqueId’ - ‘nativeIdentity’ that gets generated in Salesforce after account creation immediately in AfterProvisioning rule.
Thanks,
Pallavi
Hi @pallavi ,
Something you could perhaps try in the AfterOperationRule is retrieving the account link that was created for that Identity on the application.
import sailpoint.api.IdentityService;
import sailpoint.object.Application;
import sailpoint.object.Identity;
String identity = plan.getNativeIdentity(); // The identity being evaluated
Identity identity = context.getObjectByName(Identity.class, identity); // Get the identity Object
IdentityService identityService = new IdentityService(context);
List links = identityService.getLinks(identity, application);
for(Link link : links) // Loop through the links
{
if(link.getApplicationName().equals(application.getName()))
{
link.getNativeIdentity(); // The account native identity
}
}
I hope this helps.
pallavi
(Pallavi Chaudhari)
July 15, 2024, 5:13pm
3
Hi Dylan,
We tried retrieving the account link in after provisioning rule. However, immediately after the create operation we get the null link object.
Thanks,
Pallavi
udayputta
(UDAY PUTTA)
July 15, 2024, 5:53pm
4
Hi Pallavi,
You need to run single account aggregation to get the internal id of salesforce once account is created. You can try one of the approach which is mentioned here
Thanks,
Uday
1 Like
system
(system)
Closed
September 13, 2024, 5:53pm
5
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.