cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RyderMC
Frequent Visitor

Flow cannot connect to ServiceNow

Tried using a few of the ServiceNow flow examples, but can't get past the following error when attempting to connect:

 

"Please check your account info and/or permissions and try again."

 

Not helpful.  I can't find out what's expected for the Connection Name and Instance Name parameters.  I've tried the ServiceNow full instance url as well as just the name, and neither works.  Connection Name isn't even listed in the online docs (https://docs.microsoft.com/en-us/connectors/service-now/#creating-a-connection).

 

Any ideas?  Working examples?  Sure would be nice if the docs went into more detail...

1 ACCEPTED SOLUTION

Accepted Solutions
AlanPs1
Resident Rockstar
Resident Rockstar

Hi @RyderMC . Thank you for posting thie issue relating to ServiceNow.

You say "I can't find out what's expected for the Connection Name and Instance Name parameters"

Below is what I have did and it works:

Firtsly I went to https://developer.servicenow.com and created a dev instance.

I then captured the details from below, yours will be in the same format regardless of dev or production.Capture-210.png

I connected to Servicenow from Flow using the following.Capture-212.png

 

The connection name I just named it that, the instance name came from the Snow URL.

I then created a test incident in servicenow, I captured it's sys_id and did the belowCapture-211.png

It works.Capture-213.png

In summary.

Call your connection whatever you want, just get the instance name correct

https://<Instance Name>.service-now.com/nav_to.do?uri=

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

14 REPLIES 14
AlanPs1
Resident Rockstar
Resident Rockstar

Hi @RyderMC . Thank you for posting thie issue relating to ServiceNow.

You say "I can't find out what's expected for the Connection Name and Instance Name parameters"

Below is what I have did and it works:

Firtsly I went to https://developer.servicenow.com and created a dev instance.

I then captured the details from below, yours will be in the same format regardless of dev or production.Capture-210.png

I connected to Servicenow from Flow using the following.Capture-212.png

 

The connection name I just named it that, the instance name came from the Snow URL.

I then created a test incident in servicenow, I captured it's sys_id and did the belowCapture-211.png

It works.Capture-213.png

In summary.

Call your connection whatever you want, just get the instance name correct

https://<Instance Name>.service-now.com/nav_to.do?uri=

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Anonymous
Not applicable

(logged in wrong to reply)
RyderMC
Frequent Visitor

Thanks. Turns out there was no problem with what I was doing on the Flow side; another ServiceNow role had to be added so the user could create records. In this case, we used the ITIL role.

AlanPs1
Resident Rockstar
Resident Rockstar

Hi @RyderMC 

I was looking at servicenow permissions in the servicenow docs too, so glad you have got connected anyway.

Happy Flowing!

 

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Do i need any special permisson on ServiceNow to extract data, like API access. Currently when i try to validate my credential, it keeps popping up with Test Failed. I want to publish change request and incident from ServiceNow on to Microsoft Team and using one of the flow template but failing to validate my connection to ServiceNow.

Thanks

Anonymous
Not applicable

@Thakks I am facing the same issue, can you please let me know if you found the solution for this.

Nope no luck, i assume probably need some permission on the ServiceNow to query the api, so for now parked until i know what i am looking in to...

Anonymous
Not applicable

@Thakks , Found a solution for this, thought of updating you since it might help:

For accessing APIs from ServiceNow need to provide the role:web_service_admin in dev instance

How to connect with azure ad.

I usually use azure ad to login to servicenow. But when I use flow to connect to servicenow I don't see option to connect via AD authentication.

@AlanPs1 

Anonymous
Not applicable

Hello,

 

Is there any way where we can connect service now to power automate. I wanted to trigger something like whenever we received any incident in our queue that will automatically will get assign to respective support team member as per there on call roaster withig 15 min.

 

If you know anything about this please tell me it would be really helpful.

 

Thanks !

 

Anonymous
Not applicable

@Anonymous Power Automate *can* connect to ServiceNow, as described in this thread, but what you are asking for is better handled within ServiceNow, using Business Rules for instance.

Anonymous
Not applicable

Hello,

 

In Service now I am unable to find bussiness rule option. can u please elaborate how can I implement this. If you have any kind of document or article on this please can you share that.

 

Thanks !

 

 

Anonymous
Not applicable

I don't know how your instance is setup, or your role in ServiceNow, but you'll need to be an Admin do do any scripting.  Contact your company's ServiceNow support team if you're not a member.  The ServiceNow developer community is also an excellent resource; if you work in that capacity I recommend signing up.

Betty1
New Member

Hi,

 

I want to connect to Service Now from Microsoft Flow and want to achieve below feature -

Flow Button to ServiceNow Incident | Microsoft Power Automate

 

I have below queries on how to proceed and -

1) how to get PREMIUM access to MS flows as this is  a PREMIUM feature

2) how to get the correct details like instance name, user id and password. Currently it shows invalid connection for me.

 

Thanks!! Any leads will be very helpful!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,977)