Email Logic problem

Hi DoCentix community ,
i have problem with some email logic.
I need to build logic for PO :

  • They not will be send to Vend if PO line start with ~nopo~
    -They not will be send to customer if value is les then 0

So i have email dynamics.nopo@companyname.co.uk
And i want to redirect in that cases.

I create placeholder EmailSwitch:
iif(starts-with(Purchase/PurchaseOrderInquiry/OrderLine/LineItem/Item/@Name, ‘~nopo~’), ‘dynamics.nopocompanyname.co.uk’ , iif(number(Purchase/PurchaseOrderInquiry/AnticipatedMonetaryTotal/@OrderAmount)<0, ‘dynamics.nopo@companyname.co.uk’,‘@Purchase Order@’))

Is working compleatly fine when i have line starting with ~nopo~ or With negative value but giving error on normal PO’s
And i feed in TO field :


Unfortunately i having that error :

Do you have any ideas how to

Hi @piszczat,

I see that you are using the @Purchase Order@ placeholder (either a custom or user-defined placeholder that you created) in your expression, which is not resolved.
Can you double-check the value of that placeholder on the purchase order where you are experiencing the issue? How did you set up the @Purchase Order@ placeholder?


I referring To Vendor Purpose
When i chose is become as @Purchase Order@
image

Hi @piszczat,

From your last reply we see that @Purchase Order@ is an email token that represents the Purchase Order purpose.
Standard D365FO processes the email tokens very early during the report execution, but your email token is wrapped within a Docentric user-defined placeholder.
Our placeholders are resolved much later during the report execution, so when the user-defined placeholder is resolved as @Purchase Order@, it is too late for the email tokens processing, so @Purchase Order@ is still understood as a placeholder, and such placeholder doesn’t exist, therefore you get the error message.

Hi Dalila , thank you for that explanation. When i was using SSRS Print destination , i was able to do logic like that without problem.
Is any work around for that ? I was working with Bottomline Precision forms , And SSRS Destionation in D365 and every time was able to create some logic like that. How achieve that in DoCrentrix
I am able to get one email address as Vendor Part Contact , but sometimes we are sending to more then one email adress.

Hi Marcin,
If we understand correctly, you want to retrieve a Vendor contact and, in certain cases, multiple email addresses for the Vendor?