Set Lookupfield with Trigger


#1

Hello Plumsail Community,

is it possible to set a Lookup field in a Ticket with a Trigger? E.g. if I want to set Requesters Oranization in the Ticket.
I tried the following without success:
{{Ticket.Requester.Organization.Title}}
{{Ticket.Requester.Organization.ID}}
{{Ticket.Requester.Organization}}

Best regards
Kelvin


#2

Hello, @Kelvin

You should use the token {{Ticket.Requester.Organization.Title}}

Also notice that the column of the "Tickets" list also should get information from the same list and the same column as the lookup field of the "Contacts" list.

So create a lookup column in the "Tickets," I've called it "RequesterOrganization." Get information from a "Title" column of an "Organizations" list (since the column "Organization" in the "Contacts" list configured in the same way). Then use the token in the trigger.