userId is the AccountID for the webservice connector issue and its not getting passed in create account body

User id is the AccountID of the source, when passed directly in the create account body in and provisioning plan line$plan.userId$ , the request failed, so had to create another variable empid in create policy and pass in the plan $plan.empid$ and now while trying to map the userid in the create response mapping its not working though the API is returning userID. In the create account completed request .

Is there any way I can pass userid in the provisioning plan directly and keep it as accountid in the schema as well .thanks

  • What have you tried?
  • What errors did you face (share screenshots)?
  • Share the details of your efforts (code / search query, workflow json etc.)?
  • What is the result you are getting and what were you expecting?

Hi @SrideviJaya ,

can you please try $plan.nativeIdentity$ instead of $plan.userId$

as user id is Account ID in the web Services application please let me know if this helps

thanks in advance
Avinash Mulpuru

Thanks going through with**$plan.nativeIdentity$** but still I see create account log as below, user id not getting mapped in the response

Can you please share the create account form
Are you mapping any identity attribute for user id in create form or any transform for calculating the value

Just for testing pass static value for user id in create form if that works
Then issue with populating value

Hi userid is directmapping with the identity attribute empnumber no transform.

In create body

{

“userId”: “$plan.nativeIdentity$”,

}

I sent static value : “userId”: “12345” in body , still seeing the same as below

image

Hi @SrideviJaya ,

Have you tried to replicate the issue in Postman? Were you able to create account in target just by passing “userID“ in the body? Doesn’t it require any other attributes to be passed?

How the response body look like when you try to create the account using postman? I doubt this is because of response mapping. Make sure you give correct root path and attribute name in response mapping.

Hi,

The create account is working fine,only userid is not reflecting while creation and until aggregation.

Response mapping is fine

because create API is just returning userid

Thanks, Hope root path is $

Yes root path is $.

In place of name and identity [] populating until next aggregation is my issue

image

Hi @SrideviJaya ,
First, in create account define the mapping like for userId account attribute, mapping should be empId identity attribute.
now, in the create account pass like
{

“userId”: “$plan.userId$”

}
Make sure there is No comma after “$plan.userId$” and in Account Schema userId is account id.

Hi,

Createaccount is working fine , along with userid other attributes are being passed.

When $plan.userid$ is being set its not going through, instead $plan.nativeIdentity $ is working my issue is userid is not being mapped back as part of create account response though the response mapping is configured.

create account[] going through like this ,

image

Hi @SrideviJaya

Can you try attribute mapping is also with

$nativeIdentity

@SrideviJaya What is your postman API response for create account. Make sure you are mapping correct attribute level from response.

Yes the response mapping is fine

Hi
Make sure the data type of userId is defined correctly in Account Schema.
Also try using response mapping as $.userId as attribute path and leave root path as empty

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