How do I generate token for subscription link?

lock
push_pin
done
Beantwoord
2

I want to create an access token for a specific user, using crmscript, and send it to them, so they can manage their subscriptions.

How do I generate this using crm script?

 

<so-site>/customer.fcgi?action=updateSubscriptionsFrame&tk=<token>

25 mrt. 2024 | 02:16 p.m.

Alles Antwoorden (2)

My impression was that this key could be generated using the CreateTemporaryKey method on the PersonAgent, but looking at the available domain specification, it doesn't appear (at first glance) that this is possible. Maybe try generating a temporary key of the MailingRecipient domain (value = 1), and see if that works as token?

25 mrt. 2024 | 06:07 p.m.
By looking at the values it stores in the TemporaryKey table, using domain = 1, target_id = -2, I managed to solve this using CreateTemporaryKey.
Thank you, David!
26 mrt. 2024 | 08:57 a.m.

Reply toevoegen