Hey folks,
So I have been customizing some mail templates and so far so good for the most part. My current focus is on a new joiner use case, in which I trigger an API call to the application server to insert a person. Thanks to the help of some fine folks here, I have been able to get the attestation policies, and custom workflows working as desired, with inbound emails to the attestor.
At this point, I am looking for the approver to have as many options as possible when certifying the new person. So I have also copied/customized the "Attestation - approval required Mail" template, and added parameters to the "VI_Attestation_AttestationHelper send mail new task for approver" process to get additional data into the mail template.
For the most part I am getting certain info into the email, but there are some dynamic links that I am not able to build properly.
- To reduce the number of mouse clicks necessary for an approver to review a new person, I would like to build a link to the target person's "Master Data" in ITShop page so that the attestor can just open that from the email and make any adjustments necessary.
- I attempted to walk the objects back to the person and dynamically create a link that takes the person to the master data page.
- Created a param name
- Created the param value (pardon the misspell)
- Add param to mail template
- Created a param name
- I attempted to walk the objects back to the person and dynamically create a link that takes the person to the master data page.
- Now about the link I am trying to build
I notice that there are a bunch of other scripts in the template, but I thought that this would be easier for me. I am thinking now that the template is less dynamic in this case so I am open to suggestions. Otherwise, this is how I am building the link
Value = Connection.GetConfigParm("QER\WebPortal\BaseURL") & "/page.axd?RuntimeFormID=3905b4d9-3d87-44ad-866c-1293ec3fe5d3&aeweb_handler=p&aeweb_rp=&wproj=0&ObjectKey=" & $FK(UID_AttestationCase).ObjectKeyBase$ & "&ContextID=VI_Common_ObjectSheet"
- So I recognize that the link above is an abomination as I simply attempted to piece together the URL from what I copied from the browser, and inserted the elements that I thought would be necessary to derive the appropriate URL. I did not realize at the time that the RundTimeFormID changes for every person (not even sure I need that), so while the link takes me to the page with all of the tiles for the user, I still have to click into the "Master Data" tile to get to that detail.
It could very well be that there is a better way to accomplish this that I am not aware of. Totally open to getting different perspectives on how others are handling such scenarios.
Thanks!