SharePoint 2013 Designer Workflow: Add List Item Edit Permissions To an Assigned User - sharepoint-2013

I am currently creating a SharePoint 2013 Designer Workflow. I am at the step where I have to give list item edit permission to a user who has been defined on a list column named Assigned To. How can I achieve this in SharePoint Designer 2013 Workflows?
FYI, in SharePoint Designer 2010 Workflows, there was an Add List Item Permissions which is not available in SharePoint Designer 2013.

Call rest api to assign permission to user.
_api/lists/getbytitle('list title')/items(item id)/roleassignments/addroleassignment(principalid='principalid',roleDefId=roleDef)
demo1 & demo2

Related

How to set Sharepoint column value from Azure Active Directory AAD

So I am creating a list of Sharepoint for the first time. I want the column dropdown value instead of adding all users name manual, I want the list to get them from Azure Active directory.
Sharepoint:
Azure Active Directory:
Is there any direct way to accomplished or it requires a connector between them?
I don't see any direct way but a solution could be to write a PowerShell script or some sort of console app that executes on a schedule and consumes graph API endpoint to get users information and populates a particular (custom) list in your SharePoint site. Then you can create a lookup column in desired list that looks up user information in your users list.

Count SharePoint Documents Dynamics CRM

I have SharePoint Online enabled for my Dynamics CRM Online. I have a documents subgrid showing on my account form. Everytime a document is uploaded to Sharepoint from within CRM, an email should be fired to the owner of the record.
I tried using this with Flow but it is difficult as the SharePoint Folder structure is as follows: Account > AccountI_GUID
AccountII_GUID
and so on
I could have alerts in SharePoint enabled. However, I would have to do this each time a new account is created in CRM. There is 13000 accounts in CRM already. So, I would have to go into each of the folders and enable alerts.
Would you have any other solutions?
I was thinking of maybe getting a count of all the documents in SP and showing the count in CRM. If the count has changed then trigger a workflow. But I am not sure how to go about that. Please help.
I would probably go about this by creating a Powershell script to iterate through all of the account document libraries to set up an alert on each one. You could then run this at the end of each day to pick up any new accounts.
After a quick google I came up with this which may be of use Create Alerts using CSOM
I know there are also ways in Dyanamics to remove the GUID from the library but I'm no Dynamics expert so not sure what functionality this may effect.

How to create subsite with custom layout in sharepoint 2013?

SubSite creats this way in sharepoint 2013
Image 1
But i want create subsite in step by step. similar to 2nd image.
Image 2
if anyone have a solution or Reference or a word search in google how to create subsite in that way then pls share with me.
You can achieve above by following below:
Create a list with the fields mentioned in the snapshot
Modify the form with Nintex, InfoPath or Client side rendering depending upon availability & comfort in mentioned options
For sub-site creation, you can either JS CSOM, web-services etc.
Follow this link for info on how to create sub-site using web-services
Follow this link for info on how to create sub-site using JS CSOM
One done, you can ask user to request site using newform.aspx of the list
Pls. note that I've not tested the code

Create New User Account in Sharepoint Server 2013

I want to create a new user account(not admin and not use Active Directory) in Sharepoint 2013 On-premise.
How can I work around for this?

List View Tools tab missing in SharePoint Designer 2013

I got a task to customize the list view in SharePoint Designer 2013 . Unfortunately , i don't see List View Tools tab in my SharePoint Designer 2013. Even if i click anywhere in the web part code , i don't get it.
How to enable the List View tools tab in SharePoint Designer 2013 ?
With List View Tools :
Without List View Tools :
Bizarrely, Edit the Web Part properties and tick Miscellaneous > Server Render. I know on Tasks view webparts that this disables the Timeline and Complete icon functionality but it
enables the List View Tools and
enables valid filtering (with Server Render unticked, the filtering is wrong!).
simple way...
Open the list in Sharepoint designer 2013.
Select tag and right click and then click on tag properties.
just click on the open button.
And DONE..u can now see the List View tool option.
In my case it worked when the page was created as "Web Part Page". By default, if you select "Add a page" SharePoint creates it as "Wiki Page" and this functionality is not available.