Flow: Use returned data from Send Admin API request action - available when?

Solved

Flow: Use returned data from Send Admin API request action - available when?

nyvs_
Shopify Partner
5 0 3

Hello all,

I'm talking about this change in the changelog.

https://changelog.shopify.com/posts/flow-use-returned-data-from-send-admin-api-request-action
I tried it for myself but as it seems, it is not active?

Can anyone else confirm that this is not active?
Is there any information on when it will be available?

Thank you

Jan Strathmann
Founder of navy.systems
Need help with Shopify?
Accepted Solution (1)
RPiii
Shopify Staff
46 8 20

This is an accepted solution.

According to the development team, the reason no return value is being shown is specific to the fileCreate mutation. The return type for `fileCreate` (File) does not implement the Node interface. The Send Admin API request action can only return data or collections of data that implement `Node` and, while the number of return types that don't implement Node is very small, this is one of them. Unfortunately, there is currently no workaround but we'll work to better document this limitation.

View solution in original post

Replies 6 (6)

Kalen_Jordan
Shopify Partner
764 34 135

Worked for me.

CleanShot 2024-09-12 at 15.14.35.png

nyvs_
Shopify Partner
5 0 3

For me I cannot select variables as output:

nyvs__0-1726217059032.png

 

Jan Strathmann
Founder of navy.systems
Need help with Shopify?
Kalen_Jordan
Shopify Partner
764 34 135

Weird

RPiii
Shopify Staff
46 8 20

I see an option beneath the "Returned data" section of the variable picker in the screenshot above. Is the Send Admin API request action still not working as expected?

nyvs_
Shopify Partner
5 0 3

Hello RPiii,
the "Generate Pdf from Template"
is from an app I am developing.

As you can see, it holds my own struct,
data from the Send Admin API request
is not included.

nyvs__0-1727102700346.png


Do I have to create a new shop or
is this feature region based maybe? I am in the EU region.
Thanks

Jan Strathmann
Founder of navy.systems
Need help with Shopify?
RPiii
Shopify Staff
46 8 20

This is an accepted solution.

According to the development team, the reason no return value is being shown is specific to the fileCreate mutation. The return type for `fileCreate` (File) does not implement the Node interface. The Send Admin API request action can only return data or collections of data that implement `Node` and, while the number of return types that don't implement Node is very small, this is one of them. Unfortunately, there is currently no workaround but we'll work to better document this limitation.