Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
Hello,
I am trying to integrate a WebService SaaS application which needs a 2 step account creation. Both the create account steps are linked :
Step 1 - Create Contact user add contact endpoint → Returns a SystemId (unique identifier) - Creates a CONTACT type object in the target source
[
{
"CompanySystemId": $plan.CompanySystemId$,
"FirstName": "$plan.FirstName$",
"Username": "$plan.Username$",
"LastName": "$plan.LastName$",
"Email": "$plan.Email$",
"ContactID": "$plan.ContactID$",
"Cell": "",
"DepartmentName": "",
"Inactive": false,
"Primary": false,
"AddUser": false,
"SystemId": -1,
"AddressID": "",
"Website": "",
"Ext": "",
"Fax": "",
"Field1": "",
"Field10": "",
"Field2": "",
"Field3": "",
"Field4": "",
"Field5": "",
"Field6": "",
"Field7": "",
"Field8": "",
"Field9": "",
"AltPhone": "",
"Title": "",
"Phone":"",
"Notes": "",
"UserInfo": null
}
]
Example Response
[
{
"ObjectType": "Contact",
"ReferenceId": null,
"StatusCode": "S",
"StatusMessage": "Success.",
"SystemId": 123
}
]
Step 2 - Create User → Take the SystemId and other user information including the requested group and call the Add User endpoint. The contact’s SystemID = user’s ContactId - Creates a USER type object on the target source which holds the needed access for the user
[
{
"ContactUserName": "$plan.ContactUserName$",
"ContactId": $response.ContactSystemId$,
"Username": "$plan.Username$",
"Password": "$plan.Password$",
"FirstName": "$plan.FirstName$",
"LastName": "$plan.LastName$",
"Email": "$plan.Email$",
"GroupName": "$plan.GroupName$",
"CompanyId": $plan.CompanySystemId$,
"CompanyCode": "$plan.CompanyCode$",
"CompanyName": "$plan.CompanyName$",
"IsDisabled": false,
"IsNamedLic": $plan.IsNamedLic$,
"LicenseTypeId": $plan.LicenseTypeId$,
"CanEditExpiredPassword": true,
"CanUsePMWebAdmin": $plan.CanUsePMWebAdmin$,
"IsSAMLAuthenticated": false,
"PasswordDoesNotExpire": true
}
]
Current State:
- Contact creation works just fine.
- $response.ContactSytemID$ gets the SystemID from the response for Step 1
- $plan is not available in step2 so the body does not have any user information other than the ContactSystemID from the first step create account operation
Questions:
- Can the Create Account operations be chained?
- If not, how might have you implemented something like this - Remeber this is a SaaS webservice so no VA
- Did you / would you use
- Customizer?
- BeforeProvisioningRule?
- Pixie dust???