Empty field-values in validation rule function
Hi !
I've written my first function in deluge script which acts as a validation rule of a field in crm leads.
The function works but some fields are without a value, I've double checked the value exists.
For example the system field entityMap.get("First_Name") does not return anything, or entityMap.get("Salutation") ...
Other fields like Last_Name, Company, Email, Mailstatus are returning their correct record values.
The access settings for this field are also okay / the same like the other ones.
What can cause the problem? How to receive the fields' values?
Kind regards
- entityMap = crmAPIRequest.toMap().get("record");
- Last_Name = entityMap.get("Last_Name");
- First_Name = entityMap.get("First_Name");
- Company = entityMap.get("Company");
- Email = entityMap.get("Email");
- mailstatus = entityMap.get("Mailstatus");
- //mailstatus = "Newsletter neu";
- response = Map();
- if(mailstatus == "Newsletter neu")
- {
- mailstatus_outbound = invokeurl
- [
- url :"https://....de"
- type :PUT
- parameters:{'Modul':'Leads','action':'Mailstatus','Mailstatus':mailstatus,'Email':Email,'Last_Name':Last_Name,'First_Name':First_Name,'Company':Company}
- ];
- response.put('status','success');
- return response;
- }