Sharepoint Design 2013 call https service getting unauth in app step web app set up with full control in site app permissions

Cindy Mello 62 Reputation points
2021-03-22T23:49:51.707+00:00

[%Workflow Context:Current Site URL%]api/web/sitegroups/getbyname('FBA%20Dealer%20Engineers%20XRE%20Full%20Room%20Solutions')?$format=JSON&$select=Id

value for the this in the https call action is string above

I am storing response in dictionary but no response as response code is unauthorized.
The string does execute in the browser

Yes web app permissions set up and with full control for the list site and site collection it is in
App step not grey out in fact on another workflow same list I can use app step to break inheritance.

The group I am trying to get id for is not the same as list workflow is built on but the app step says I have the elevated right on the objects in the site collection and groups are in the site collection.
??
Cindy

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
506 questions
0 comments No comments
{count} votes

Accepted answer
  1. Peter Fleischer (former MVP) 19,231 Reputation points
    2021-03-23T05:41:16.71+00:00

    Hi Cindy,
    you must set X-RequestDigest.

    To get X-RequestDigest string call HTTP service (HTTP POST) with address <website-url>/_api/contextinfo and extract FormDigestValue from ResponseStatusCode.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Cindy Mello 62 Reputation points
    2021-03-23T22:30:58.61+00:00

    One last question
    will using SPD and REST call SP API and X-RequestDigest still work with 365? I do not know how long we will be on premise with SP 2019.