sst11
(Shuen Teng)
March 11, 2025, 3:44am
1
Hi all,
I have created one workflow to run the BETA\load-accounts API (for aggregation) on scheduled.
Below are the details:
Authentication: OAuth 2.0
Token URL: https://TENANT.api.identitynow.com/oauth/token
request URL: https://TENANT.api.identitynow.com/beta/sources/SOURCEID/load-accounts
Content-Type: multipart/form-data
Method: POST
Request body: disableOptimization : true
But when I test workflow to run, the workflow keep running at the HTTP action item and will not finish:
There is no error return, but the workflow will not end and there is no aggregation triggered at the source.
I tried to run on POSTMAN and there is no issue.
I tried to use same client ID and secret to run other BETA POST API also no issue.
Please kindly advise on this.
rkhade
(Rakesh Khade)
March 11, 2025, 6:17am
2
Hi @sst11 , have you checked execution logs, if yes, what are the details you are getting are you able to see ActivityTask details or HTTP Request step in the execution ?
sst11
(Shuen Teng)
March 17, 2025, 1:49am
3
Hi Rakesh,
Yes I have checked the execution log, it shows me 500 error code.
kdfreeman
(Kapil Dahal)
March 17, 2025, 3:32am
4
Are you tokenizing SOURCEID with {{SOURCEID}}
? If any variables are involved, you need to enclose those variables in {{ }}
.
sst11
(Shuen Teng)
March 17, 2025, 3:55am
5
Hi Kapil,
No, I actually enter the real source ID in the URL instead of tokenizing it. It is something like this:
(https://tenant.api.identitynow.com/beta/sources/123456789/load-accounts )
kdfreeman
(Kapil Dahal)
March 17, 2025, 4:57am
6
What is your source Type? It is not possible if it is delimited. Also, did you add Content-Type: multipart/form-data
in header inside workflow HTTP Action?
sst11
(Shuen Teng)
March 17, 2025, 9:45am
7
Hi Kapil,
My source type is SQL Loader, and yes I added the Content-Type: multipart/form-data in the header section as well.
schattopadhy
(SHANTANU CHATTOPADHYAY)
March 17, 2025, 11:59am
8
@sst11 can you try the v 2024 api. also when you tried from postman did you try from postman browser one or on premise one ?
sst11
(Shuen Teng)
March 20, 2025, 3:08am
9
Hi Shantanu,
I have tried v2024 api, but it will result to Request Failed when I run test workflow.
I tried from postman on prem, not browser one.
Thanks!
Tulasi
(Tulasi Sowjanya Pallaprolu)
March 20, 2025, 7:40am
10
Hi Shuen,
Have u kept the request content type as the form
sst11
(Shuen Teng)
March 20, 2025, 8:02am
11
Hi Tulasi,
Yes, I have set it to Form.
sst11
(Shuen Teng)
March 20, 2025, 8:29am
12
Hi all,
I have figured out the way - it is because the client ID and secret I used is the API I created from the API Management in the tenant.
But according to the another post - Using Workflow's HTTP Request Action to Work With IdentityNow APIs - #6 by colin_mckibben
We must use PAT to call the API. Once I changed to my PAT in the workflow and now the workflow can run without issue.
Thank you everyone for the kind assistance!
2 Likes