Populating email workflow node with Active Directory attributes

:bangbang: 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.

Please consider addressing the following when creating your topic:

  • 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?

Hello,
Please let me start off by saying I am very new to SailPoint, but not I did a lot of reading and tried multiple ways to get the following to work.
I created a form to locate an Identity
The end result is to send an email with Active Directory specific attributes through an email.

The workflow is tied to the form with a Get List of Identities Node - workflow execution shows this part is successful.
I need to create a node to get the AD attributes.
I then need to create the variables and apply it to an email.
I have had multiple partial success with some variations, example:
I get the Identity from the form, workflow execution proves that.
I have sent the email, but no version of the JasonPath sends the variables.
I am looking for the best method to accomplish this.

Any experience or good documentation would be greatly appreciated.

Example of workflow error:
{“error”:“task failed: activity error (type: sp:account:get-accounts, scheduledEventID: 11, startedEventID: 12, identity: 1@sp-workflow-worker-stg-us-east-1-558c85f7d9-s9vnq@): json: cannot unmarshal string into Go struct field GetAccountsInput.valueList of type string (type: Error Parsing Input, retryable: false): json: cannot unmarshal string into Go struct field GetAccountsInput.valueList of type string (type: UnmarshalTypeError, retryable: true)”}

Create a HTTP Request for the account ISC api. Grab the data you need from there.

done.

Thank you - as I stated, I am new to SailPoint and learning the needs for the email node. Are you able to recommend how to populate the email template or good documentation? I think I am having a format issue; I have tried multiple ways:
I am trying one attribute at a time:
‘{“mail.$”:“$.hTTPRequest.body[0].mail”}’

The error I get is:
{“attempts”:1,“displayName”:“HTTP Request”,“stepName”:“hTTPRequest”,“task”:“sp:http”,“technicalName”:“HTTP Request”}
{“displayName”:“HTTP Request”,“error”:“Unable to parse input as JSON, please ensure it is syntactically correct. (type: Error Parsing Input, retryable: false): invalid character ‘s’ looking for beginning of value”,“stepName”:“hTTPRequest”,“task”:“sp:http”,“technicalName”:“HTTP Request”}
{“error”:“task failed: activity error (type: sp:external:http:v2, scheduledEventID: 5, startedEventID: 6, identity: 1@sp-workflow-worker-stg-us-east-1-f7b6699b-2crg7@sp-workflow-engine): Unable to parse input as JSON, please ensure it is syntactically correct. (type: Error Parsing Input, retryable: false): invalid character ‘s’ looking for beginning of value (type: Error Parsing Input, retryable: false): Unable to parse input as JSON, please ensure it is syntactically correct. (type: Error Parsing Input, retryable: false): invalid character ‘s’ looking for beginning of value (type: SyntaxError, retryable: true)”}

I’m sure you’re doing a excelent Job, just by your questions.

Keep up the good Job and dont give up :slight_smile: