- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 08:51 AM
Hi everyone, how are you?!
Could you please give me a suggestion?!
I have a Report needs to be sent to the Group Holder, but this Holder is in a Reference field called "Business Partner Department" (PRINT_1),
I checked and a colleague from this community suggested a script to me so a "Dot Walk" in the "Condition" section of the Schedule (PRINT_2), but unfortunately is not working to the Report:
I just need to get the "Holder" of a reference field for the Report to be sent.
Could anyone please give me a tip or script suggestion?
Thanks for the support!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 09:09 AM - edited 11-17-2023 09:11 AM
Hi @Elton2
Try to run it in background script and check the results. Use gs.info(grCmdb.getRowCount()) to check the number of records returned by query().
Use the below script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 09:09 AM - edited 11-17-2023 09:11 AM
Hi @Elton2
Try to run it in background script and check the results. Use gs.info(grCmdb.getRowCount()) to check the number of records returned by query().
Use the below script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2023 02:58 PM - edited 11-18-2023 03:01 PM
Hi @Shubham Singh , how are you?!
Firstly, I would like to thank you for your support and professionalism, with your tip I managed to get the emails (print_1)!!!
So, answering your question: There is no field called "next" in the table.
The email that was picked up by Dot Walk must be entered in the field: address_list so that the Report is sent (print_2).
Because of this I thought about creating an empty array and/or an obj that will receive a userEmail (print_3) property, this way the obj or array would be inserted in the field: address_list (field where the user's email is located). (print_example)
But I'm not making any progress, could you please give me any suggestions?
Thanks again!