0

I'm trying to create a create role definitions i.e. custom permission level using Power Automate with below body in Send an HTTP request to SharePoint:

{
    'request': { '__metadata': { 'type': 'SP.RoleDefinition' }, 'BasePermissions': 
    { '__metadata': { 'type': 'SP.BasePermissions' }, 'High': '176' , 'Low': '138612801' }, 
    'Description': 'New description', 'Name': 'New role', 'Order': 180 }
}

Below is error:

An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.

1 Answer 1

1

In the Body, use the Json below:

{
'__metadata': { 'type': 'SP.RoleDefinition' },
  'BasePermissions': { '__metadata': { 'type': 'SP.BasePermissions' }, 'High': '176', 'Low': '138612801' },
  'Description': 'New Permission Level Description',
  'Name': 'New Permission Level',
  'Order': 180
}

enter image description here

enter image description here

3
  • will check and let you know, thanks
    – Arun
    Jan 25, 2021 at 2:01
  • Is there any update ? Have you tried this in Power Automate ?
    – Jerry
    Jan 26, 2021 at 0:48
  • awesome its working
    – Arun
    Jan 26, 2021 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.