Hi there,
I have an issue with the dynamic expression for a DELETE call through Sendgrid API and therefore API Connector. Basically to delete a contact in Sendgrid from Bubble the process is simple: first a POST call to get “contact_id” (from the email stored in our Bubble DB) and then a DELETE call to delete the contact in Sendgrid (delete the contact in a list, marketing campaign list) from the “contact_id”. It can only be done this way, in 2 steps/calls, since Sendgrid needs the id of the contact to delete it, the email is not enough. The POST+DELETE call sequence works perfectly if I indicate a value in the param (on API Connector). The contact is then properly deleted on my campaign list.
The issue is really in my “step 3” in the WF for the dynamic expression. The dynamic expression of the step 3 “delete_contact” call is taking automatically the email of the contact used for the initialization call (in this case “quent-s@hotmail.fr”). I simply cannot change it to “Result of step 2’s contact_id” which should be the correct dynamic expression. It cannot be changed. Don’t know why. So the call/WF works, deleting “quent-s@hotmail.fr” from the Sendgrid list instead of “Current User”.
Any clue what’s going on? I mean i keep the param value empty and private, so that dynamic data is enabled, call is non private, and query, as requested by Sendgrid. Indeed Sendgrid requires this call to be Query. But why on earth is the dynamic expression in Step3 a non-dynamic one basically adding the initiaitlization call email used? I tried to set this up from scratch on another Bubble app. It does the exact same thing!
Hope someone can help! Best