The Now Platform® Washington DC release is live. Watch now!
on 07-06-2018 11:45 AM
ServiceNow connector to Microsoft PowerApps and Flow is in Preview (Connector Reference). I thought I will give it a try to see how easy that ServiceNow can be integrated into Microsoft Cloud apps. Since there wasn’t much of documentation for this, so I wanted to share my experience here in case someone is interested in the steps:
After the Connection is created, you can use it in Microsoft PowerApps, Flow or Azure Logic Apps. I found Flow is a way better option than connecting directly via PowerApps, since you can easily debug the output in Flow. I think there are limits on how many calls you can make with Flow per month, so you might want to evaluate the cost if you decide to deploy this to production.
Now you are ready to consume the Flow in PowerApps
Hi @Shawna. You wrote:
What do you mean by "Local account"? I tried to setup the connection from Powerapps using my account in the ServiceNow instance of my company, of course. What other account should I use?
Thanks for your help in advance!
Bye,
A.-
We have single sign on enabled for our ServiceNow instance and we can access our ServiceNow via our Azure AD accounts.
I was not able to use my Azure AD account to connect to the API, but a local admin account, which is only exist in ServiceNow but not in Azure AD, was able to.
Getting the following error when setting up an action to ServiceNow:
Any idea why this is happening? The trigger list is empty.
Thank you!
There aren't any ServiceNow triggers for Flow at this time. So i assume you are connecting this Flow to a PowerApp, use the PowerApps trigger for the first step of the flow. After that you can use the ServiceNow actions and then also be able to call outputs from the Power app into the ServiceNow actions. Make sure to use Response action above that Shawna mentions.
Flow below:
I have the trigger and action setup, as well as the result as laid out. I am now in studio trying to create the app, but there is nothing coming up in my gallery when I click the button.
My flow is named "Enhancement Items".
The "Items" property of my gallery has a formula of "enhancements".
The "OnSelect" property of my button has a formula of "ClearCollect(enhancements,EnhancementItems.Run())"
What am I missing here? Where does the app tie into the Flow? Your formula had "RequestItems" in it, where is that coming from?
Thank you
EDIT: Could this be an issue? My Gallery wants me to connect to data, but when I go to make a data connection, the following is displayed. Checking my license with PowerApps, I am on a "PowerApps Plan 2 Trial":
EDIT 2:
Closing and re-opening the app, it looks to be pulling in data, but it is not displaying (look at the scrollbar):
You probably need to format the gallery. Since it looks like a blank gallery, try inserting a label and set it up to read the data. For example, I have a text label displaying 'Assigned To' and then another text label set to ThisItem.assigned_to.
I've done this, but still no data is coming up. I can confirm that it is making a connection to my PDI, however, as when it was sleeping I got a very obvious error that said it couldn't connect to the upstream server. I am no longer getting errors with my PDI awake:
EDIT: Spoke too soon, it's working now! Had to reload my app, after adding in the label with the thisitem.field.
Do you know how I can grab a reference value's display value? I'd normally use .getDisplayValue() in ServiceNow, but this is not working in PowerApps.
Still looking for some help getting properties of my array into the gallery via ThisItem or similar. Anyone around?
Thanks!
I can't find what to use for Instance Name. I tried the values below and get an error:
I notice that the ServiceNow connector in Microsoft Flow designer (https://us.flow.microsoft.com) is still listed as "preview". Do we know when it is expected to upgrade to full production release?
Hi Randall,
Just use the name of your instance (rydersystesdev) instead of the full URL.
Cheers!
Hi all,
I know this is an old conversation but I may have a simple solution. As serveral of you I also got empty collections in my PowerApp but when I changed to body instead of result in my response in Microsoft Flow I started to get the data in also. Please try that and see if you get the data.
Hi,
When I try to connect to the instance it says "Please check your account info and/or permissions and try again".
Can i please know what permissions or access should i have?
Connection name should be your servicenow instance URL
Hi Allen,
Thank you for responding.
I tried using the URL in connection even then it is giving me the same error, is there any specific permission I should have in order to connect through logic app?
I am able to create,list etc. all the incidents when I open the URL through google chrome.
Could you please help me. Thanks in advance
Hello Shashwathi,
I believe you need to have the system administrator account to be able to connect to flow, because that's what I did.
In the connection name I copied and pasted the instance URL, and on the instance name I coped the name which is in my case "dev72802". Also, the username and password I used is of the system administrator. Hope that helps somehow.
Have a good day!
Hi
Is there any way post RITM variables to Microsoft flow. Please respond to my thread.
How to post RITM variables to Microsoft flow using Rest call?
Thanks,
Rajashekhar Mushke
Hi,
What exact permissions are needed for the account ? certainly not ADMIN it has root power ?
Thanks
What exact permissions needed ? Thanks
Any update on which role is required for the user to create a request from power automate to servicenow
as far as I know it's just ITIL
Hi, did you manage to find a way to add Variables for Catalog items? is this possible to populate variables in catalog items (Request Item table) from PowerApps integration?
Hello, How we can manage the integration with service now, per example insert new data with choice fields. There is any way to sync data or is better use the ServiceNow API's ? Thank you in advance.
Hello,
Have anyone tried creating specific RITMs with multiple variable dependencies in ServiceNow using the ServiceNow connector in Powerapps? Is that possible in PowerApps?
Also, does it not insert new unnecessary objects in ServiceNow as it has no field validations?
Hi,
Also want to use the servicenow connector from powerautomate. The connection looks succesfull ( connected) but i got following error:
Operation Failed","detail":"ACL Exception Insert Failed due to security constraints
So i guess i need more rights yes ?
Anyone know exact what rights you need (except the admin role ofcourse)
I'm trying to create a connector from Powerapps (SharePoint) to ServiceNow to create an incident. I can connect to ServiceNow just fine but the ServiceNow guys says it creates the incident but does not populate the "company" field. It populates other fields but not that one. Tried different options in the company field but none of them seem to work. Any ideas?
my company is using SSO and not allowing local account . is there any way to make use of rest API to connect to service now from powerapps?
1) MUST use a local account - does not work with SSO
2) Local account must be a full admin account