Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Need to trigger the Ritm based on the attestation response

DASAMANDAMS
Tera Contributor

I need to raise the RITM based on a yes/no variable within the attestation form. Depending on the user's response, if "Yes" is selected, the RITM should be triggered. Additionally, I want to pass the values from the attestation response to specific variables within the catalog item. How can I accomplish this?

4 REPLIES 4

glideFather
Tera Patron

ahoy @DASAMANDAMS,

 

there are plenty of ways but first of all you should be aware that RITM does NEVER stand alone, it is always linked togetehr with REQ (SCTASKs are optional but REQ + RITM go always together).

 

You can create a flow to be triggered after the attestation is submitted with the trigger conditions for the desired values in desired fields.

 

Another thing is a business rule, upon creation with the desired conditions... and/or you can use events.

 

It will strongly depends on how is your instance managed as it is a good practice to follow the similar configurations.


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

lpruit2
Mega Sage

Greetings @DASAMANDAMS. I'm also very interested in some post-Attestation logic as there doesn't appear to be much out-of-the-box apart from the Target record being Attested will have its Attestation Status updated.

 

Has anybody built out a Workflow or process on how to best to handle the Rejected Attestation records? If there are any comments made at the time of the Attestation (CMDBTASK) they are stored within the Comments / Activity Stream of that record. 

 

My current thought is to trigger a post-Attestation CMDBTASK record per target record and parse the Rejection reason from the original CMDBTASK into the Description field of the newly created post-Attestation CMDBTASK. 

 

I'm interested in others' opinions on how they have tackled this process gap. 

ajmalmuhamm
Tera Contributor

Hi @DASAMANDAMS ,

 

You can achieve this using Flow Designer rather than trying to create the RITM directly from the attestation form.

A possible approach is:

  1. Trigger the Flow when the Attestation Response is submitted.

  2. Add a condition to check the Yes/No variable. For example, if the response is Yes, continue the flow.

  3. Use the Create Catalog Task / Request / Requested Item functionality, depending on your requirement, to initiate the catalog process.

  4. Map the values from the attestation response to the corresponding catalog item variables.

  5. If the values need to be passed into variables that aren't directly available as Flow data pills, use a Script step to retrieve the attestation response and populate the required variables.

  6. If the answer is No, end the flow without creating the RITM.

If the attestation response is stored in a related record/table rather than directly on the trigger record, you can use Look Up Record first to retrieve the response and then map those fields into the catalog item variables.

This approach keeps the logic server-side and avoids relying on Catalog Client Scripts, which generally won't be appropriate for creating an RITM from an already-submitted attestation.

Hello @ajmalmuhamm ,
Could you please tell me which table contains the responses for the attestation?