Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Does Elements Connect allow multiple rest-api calls for a single field?

Steve Morris February 3, 2022

I need to pull data from a rest-api but the data needs to be filtered by a value that I can only get (a table key) by first calling the rest-api to retrieve it.     So I need to something like:

get product/search$parentName=SomeValue

(save the parentName's key value from the returned json)

get product/searchChildren$parentKey=SavedKeyFromFirstCall.

Display the child data in the Elements Connect field. 

Is this possible, maybe with Velocity, which I don't have experience with? 

1 answer

1 accepted

0 votes
Answer accepted
Armand Luziau_Elements_
Atlassian Partner
February 3, 2022

Hey @Steve Morris ,

I'm the solution engineer at Elements, unfortunately, what you are asking isn't possible. You can't do several rest-API calls for a single field.

However, you can try to implement this workaround:

  • Create a first Element Connect field in which you execute: product /search$parentName= SomeValue and then you retrieve the parentKey.
  • Create a second Elements Connect field with a dependency to the first one you just created, and you execute: product/searchChildren$parentKey=SavedKeyFromFirstCall

Let me know if this helps you!

If you need more assistance while implementing this workaround you can contact us through our support portal.

Best,

Armand

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.16
TAGS
atlassian, loom, AI, meeting recording, community

[NEW] Record your meetings with Loom

Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.

Learn more
AUG Leaders

Atlassian Community Events