When creating a JSON panel in a custom app, is it possible to use variables in the API endpoint field? For example, if I want the JSON panel to only display sales quotations associated with a particular deal, could I put in https://my-api-server/quotes?deal={{PIPEDRIVE_DEAL_ID_HERE}}?
Hi @luke-maddox,
Welcome to our Developers’ Community!
My bad for not getting back to you sooner. I just checked with our developers about your query.
There is no need to pass to use variables because Pipedrive will automatically send the entity’s ID as part of the selectedIds
query parameter. You can learn more about the query parameter here.
For example, if the JSON panel was displayed in the deal detail view, the provided API endpoint will receive extra query params such as ?resource=deal&selectedIds={PIPEDRIVE_DEAL_ID_HERE}
.
I hope this answers your question. Please let me know if you have further questions.
1 Like
This topic was automatically closed after 10 days. New replies are no longer allowed.