Can anyone shed any light as to why it behaves this way?
Thank you,
Angelo
Can I please add, I have noticed that in another notification message the project.user_def1 field is also included and works correctly..
This really is baffling as even if I take out all the message content and only include: {{project.user_def1}} in this notification if does not pull in the filed value into the notification…
Why does it work in one and not the other???
@AngeloPav
Seems like you are doing it correctly.
At this point I can suggest that you will delete the configurations and recreate them from scratch again.
Also, try adding the filed(s) to the custom metadata, if you haven’t done so.
Cheers!
Hi Shneor and anyone else that may be able to help,
The send of the notification described above, “kind of” worked.. My colleague added the custom metadata as suggested and the notifciation populated correctly. however, when I try it the notification does not populated correctly resulting in same missing fields.
What is really frustrating is that I then logged on with the Studio account and tested the notificacation it still did not work for me.. When my colleague logs on with the same STUDIO account it does work..
This is the case even after numerous (full cache) refreshes and even a complete uninstall and re-install of the Smart Client.
Any ideas why would experience this behaviour.. It is consistently working for him and consistently not working for me. This is regardless of whether we both use the same STUDIO account or our own individual ADMIN accounts.
I am very confused..
Hi @AngeloPav
I am not 100% following you.
If you have an account ID of ‘XYZ’, and you login from 2 different machines, than it works from one and not the other?
Have I got this correctly?
Cheers!
Hi @Shneor,
I work with Angelo and have just done some more testing on this. Here are my findings.
- If you change the Approval Status on the Project directly on the field on the Project screen. The Notification goes out correctly with all values.
- In our application, the Project Approval status is typlically changed via a business rule triggered from TASK. The XML for this rule output looks like this
<update_project>
<project>
<project_id>@project_id</project_id>
<proj_status>OPEN</proj_status>
<approval_status>SUBMITTED</approval_status>
<update />
</project>
</update_project>
- This update is then captured via a second Business Rulke that send out the Notification (the same rukle that send out the notificaiton in step 1 above) However, now, the values User_def1,user_def2 a d created_by are left blank!
- If i run the XML from the first rule in the XML Poster, i get this result
<update_project_result>
<project>
<project_id>154</project_id>
<project_title>test</project_title>
<person_id_owner>APAVLOU</person_id_owner>
<status>OP</status>
<proj_status>OPEN</proj_status>
<reopened>N</reopened>
<place_id>ZZ PLACE ONE</place_id>
<place_id_to_bill>ZZ PLACE ONE</place_id_to_bill>
<approval_status>SUBMITTED</approval_status>
<days_open>1</days_open>
<address_id>3459</address_id>
<currency>GBP</currency>
<important>N</important>
<corporate_currency>GBP</corporate_currency>
<user_def_dttm1>2021-11-26T00:25:00.0000000</user_def_dttm1>
<user_def_dttm2>2021-11-26T01:50:00.0000000</user_def_dttm2>
<modified_by>MFOWLER</modified_by>
<modified_dttm>2021-11-23T11:22:22.4473891</modified_dttm>
</project>
</update_project_result>
- NOTE here, the values that are then missing from the notification message are not shown in the XML result! I think this may be the root of the issue.
- So, the question at this stage is why are those fields not shown in the result above? I have checked the Custom Meta data for the Project table and they are defined just like the user_def_dttm1 & 2 that are in the result.