Adding debug trick in JavaScript

I liked this trick….
  

</div>
    var aVal = location.search.split(‘debug=’)[1] ? location.search.split(‘debug=’)[1] : ‘0’;
    if (aVal == “1”) {
        document.getElementById(‘debug-area‘).style.display = “block”;
    } else {
        document.getElementById(‘debug-area’).style.display = “none”;
    }
Advertisements
Posted in Uncategorized | Leave a comment

Forbidden sp.utilitites.utility.SendEmail

Problem:

I got in one the workflow to send an email to the SharePoint Group.

error.png

Solution:

I found that the approval email was sent using the SharePoint Group. The issue with that is the group has to be set to Everyone and fixed the error.

More information can be found at:

HTTP Unauthorized to /_vti_bin/client.svc/sp.utilities.utility.SendEmail

Posted in Uncategorized | Leave a comment

Problem:

I got in one the workflow to send an email to the SharePoint Group.

error.png

Solution:

I found that the approval email was sent using the SharePoint Group. The issue with that is the group has to be set to Everyone and fixed the error.

More information can be found at:

HTTP Unauthorized to /_vti_bin/client.svc/sp.utilities.utility.SendEmail

Posted in Uncategorized | Leave a comment

SharePoint Online WorkFlow Forbidden error for a list with no edit user permission

Problem:

I have a list with permission for users to Add or View an Item. Once item added the users are not allowed to edit. In this list there is an ItemAdded SPD workflow which runs under App Step with elevated permission.

The App Step Elevated permission steps are well documented on MSDN

Create a workflow with elevated permissions by using the SharePoint Workflow platform

Even after all the App Step I got the following error in the item added workflow:

Retrying last request. Next attempt scheduled after 10/2/2018 4:50 PM.

Details of last request: HTTP Forbidden to https://{tenantname}.sharepoint.com/sites/test1/_api/web/lists(guid’95594e70-d007-44a8-9baa-cb714d15bda6′)/Items(204) Correlation Id: 866d4444-8807-5c84-a37c-0d1054fd9640

Instance Id: 6f29bdbe-4b05-4e18-8b5b-d3cc8b830a3f

After searching on the web to find why this was an error, I found the following article which helped me resolve the issue. In summary, I had to turn off the “Automatically update the workflow status to the current stage

SharePoint 2013: SharePoint Designer Workflow in Suspended or Canceled State

Cause

When the “Automatically update the workflow status to the current stage” name option is selected in SharePoint Designer, SharePoint must edit the list page to change the workflow status. A user needs edit permissions on the list to edit the workflow status. If a user does not have edit permissions on the list, the workflow enters a suspended state.

Sharing it…to save few hours. It took me few hours to figure out in spite of elevated App Only permission the SPD workflow fails for only Add or View Items permission list.

 

Posted in Uncategorized | Leave a comment

How to add “Active Directory Schema” Tool?

Step #1: register the SCHMMmgmt.dll using following command

“RegSVR32 schmmgmt.dll”

Step # 2: Launch MMC and add “Active Directory Schema” snap in

 

Posted in Uncategorized | Leave a comment

Yammer App development useful information

API list http://developer.yammer.com/restapi/

Yammer.SimpleAPI (http://yammersimpleapi.codeplex.com)

Contract Meow sample (http://yammercontractmeow.codeplex.com)

JSON C# Class Generator (http://jsonclassgenerator.codeplex.com)

https://www.sched.do

https://github.com/yammer/sched.do

https://yammercontractmeow.codeplex.com/

http://channel9.msdn.com/Events/Build/2013/3-605

Yammer Developer Site

https://developer.yammer.com/

Yammer Developers Network

http://yammer.com/yammerdevelopersnetwork

Mobile SDKs

https://developer.yammer.com/mobile/

Dev Certification (soon!)

https://about.yammer.com/certifications/

Getting Started

https://developer.yammer.com/introduction/

REST API documentation

https://developer.yammer.com/restapi/

Embed Documentation

https://developer.yammer.com/connect/

Posted in Uncategorized | Leave a comment

Channel 9 download tool

If you are like I don’t like the video streaming and waiting for the real content to listen by the presenter so I get the video to view offline. So I can fast forward. Please use the following cool tool to download.

http://dayngo.com/channel9

Posted in Uncategorized | Leave a comment