Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Alteryx Server V3 macros samples

joeGade
10 - Fireball

@maisonsteyer  is there an example of how to use Server V3 API macros to upload a .yxzp to the server? 

 

We are unable to figure out how to upload / Pass Workflow Payload to V3 POSt API  with Alteryx itself.      POST Macro - used for updating records 

We are able to connect from UI/Swagger but unable to upload Payload from Postman or Alteryx API that lets workflows upload in V3 version of API from https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228

 

Background : I am Creating a Migration tool App that will let migrate One workflow from dev server to Prod server by changing the respective Gallery connections and migrating it over to Prod, I am stuck at creating a zip(.yxzp) and migrating/Upload to Prod usign these API's can you help, please. 

6 REPLIES 6
BrandonB
Alteryx
Alteryx

Have you successfully configured the Server API Authenticate macro yet? You should be pointing it at the Web API endpoint that has been configured in the Alteryx Server settings:

 

BrandonB_0-1657121338617.png

 

When you have this first tool successfully configured, it should return the following information: 

 

BrandonB_1-1657121391962.png

 

 

You then follow this with the POST tool that has been configured with the following fields included as specified by (required) tags: https://help.alteryx.com/20214/server/workflow-endpoints 

 

This should allow you to successfully send up one or more workflows to the server: 

 

BrandonB_3-1657122620826.png

 

 

apathetichell
19 - Altair

@BrandonBis correct - and have you installed the .yxi pack? If so - which macro is your blocker the login/authentication macro or the post workflow macro?  Follow the link above to see which fields are required. Those MUST be passed in to to the post workflow macro - and as a reminder your payload should be the location of the workflow (.yxzp) file you are uploading.

yuriy
8 - Asteroid

@BrandonB , can you please attach the sample workflow that you showed in the screenshot?

BrandonB
Alteryx
Alteryx

Hi @yuriy 

 

This is purely a mocked up example and by no means an official approach, but feel free to use it as reference and test to ensure that it does what you expect. Workflow attached.

 

Make sure that you have the V3 macros installed from this link and that you are on a version of Alteryx Server that supports the V3 API: https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228 

yuriy
8 - Asteroid

Awesome, Thank you so much @BrandonB !

Padma_
7 - Meteor

Hi, What is OwnerId provided in the workflow, from where can I get this Owner ID?