Data source of type REST (Integration Hub)

Blessy2
Tera Contributor

Hi Team,

 

We are trying to fetch repo details from GitHub and store in 'X' table in ServiceNow. For this we are trying to use Integration Hub ETL.

Created a data source of type REST (Integration Hub) and have created a Request action in which we have the REST step. We were told that we might need to fetch info from more than one org. In the resource path I can only pass one org name at once.

If there will be 5 orgs, I'll need to loop through these org names. How do I achieve this using single data source?

 

Thanks in Advance

 

 

3 REPLIES 3

-O-
Kilo Patron
Kilo Patron

You can switch type to Custom (Load by Script) in which case you can be as flexible as you need.

Though you would most likely need to switch to regular Flows, Sub-flows or REST Messages to execute the REST calls.

Blessy2
Tera Contributor

@-O-  Thanks for your response.

 

I tried Custom(Load by script). But when I'm trying to test load records, it says success but 0 records inserted(image attached).

 

In logs when I see, it says "Error: 403 - {"message":"Although you appear to have the correct authorization credentials, the organization has an IP allow list enabled, and your IP address is not permitted to access this resource.","documentation_url":"https://docs.github.com/rest/repos/repos#list-organization-repositories","status":"403"}"

 

Blessy2_0-1743675162867.png

 

Thanks

 

I guess the error message is quite clear.

You should contact the owner of the repo that refuses connection and ask them to whitelist either SN's IPs, or configure the REST message to use one of your MID servers and ask the owner of the repo that refuses connection to whitelist your IPs.