I have this situation
Leads were received in coreBOS by marketing automation (integration with another system, in the cloud)
Any salesperson can obtain this lead, as long as they convert to their user to start a negotiation, creating the contact and the opportunity
Solution:
Create a business map to check some fields and alert the seller to change the user to his (thus define that he is working with that lead)
first BM
type validations
checks if the lead source, phone number and cell number are correct to successfully contact
So far, everything is fine.
This BP needs to call another BM (BusinessMap_IdUserActive) to check if the user is already assigned to it (does this by checking if the user registered in the lead is the same user logged in)
This is my problem
I can't find the correct syntax
something wrong with this second BP system as it does not return false, even when users are different
How can I solve this?
Leads were received in coreBOS by marketing automation (integration with another system, in the cloud)
Any salesperson can obtain this lead, as long as they convert to their user to start a negotiation, creating the contact and the opportunity
Solution:
Create a business map to check some fields and alert the seller to change the user to his (thus define that he is working with that lead)
first BM
type validations
PHP Code:
<map>
<originmodule>
<originname> leads </originname>
</originmodule>
<fields>
<field>
<fieldname> leadsource </fieldname>
<validations>
<validation>
<rule> notIn </rule>
<restrictions>
<restriction> --None-- </restriction>
</restrictions>
</validation>
</validations>
</field>
<field>
<fieldname> mobile </fieldname>
<validations>
<validation>
<rule> lengthMin </rule>
<restrictions>
<restriction> 10 </restriction>
</restrictions>
</validation>
</validations>
</field>
<field>
<fieldname> phone </fieldname>
<validations>
<validation>
<rule> lengthMin </rule>
<restrictions>
<restriction> 10 </restriction>
</restrictions>
<message> {field} incomplete </message>
</validation>
</validations>
</field>
<field>
<field name> assigned userid </ field name>
<validations>
<validation>
<rule> expression </rule>
<restrictions>
<restriction> BusinessMap_IdUserActive </restriction>
</restrictions>
</validation>
</validations>
</field>
</fields>
</map>
checks if the lead source, phone number and cell number are correct to successfully contact
So far, everything is fine.
This BP needs to call another BM (BusinessMap_IdUserActive) to check if the user is already assigned to it (does this by checking if the user registered in the lead is the same user logged in)
This is my problem
I can't find the correct syntax
PHP Code:
<map>
<expression> if assign_user_id! = substring (getCurrentUserID (), 3) then 'true' else 'false' end </expression>
</map>
something wrong with this second BP system as it does not return false, even when users are different
How can I solve this?
Ranieri
eCRM Web
eCRM Web