JavaScript

Walked into an interesting SharePoint online environment where a mixture of different configurations were being used depending on who asked for what. One of these features was using a publishing site to handle news item.. Now, trying to actually retrieve some of the image URIs are a pain, so hacked together the following using a browser console to pull the image out of a specific item.

All of this can be simplified and used elsewhere.. I just wanted to see if I could pull the information out.

Result[0] = “src=”/sites/…Picture%20Library/cats.jpg””
Result[1] = “/sites/…/Picture%20Library/cats.jpg”

February 25, 2020

SharePoint Online – Get Image from publishing site list – JavaScript & Regex

Walked into an interesting SharePoint online environment where a mixture of different configurations were being used depending on who asked for what. One of these features […]
October 6, 2017

Dynamics CRM – Javascript Xrm.Page.ui.getFormType()

There are hundreds of blogs which show you this: Form Type Value Undefined 0 Create 1 Update 2 Read Only 3 Disabled 4 Quick Create 5 […]
October 5, 2017

CRM 2016 JS – ReferenceError: is not defined at eval (eval at RunHandlerInternal)

  [crayon-5f07a28ca2e5e613523964/] Had an issue when attaching some code to the onload event on the leads entity. The TL;DR of the issue is that your code […]
October 2, 2017

Dynamics CRM 2016 – Create record with JavaScript

Original post here: https://365dynamicscrm.wordpress.com/2016/02/18/webapi-javascript-to-create-a-record/ [crayon-5f07a28ca302d721828905/]   Going to make some assumptions that the account[“name”] can be set with Xrm.Page.getAttribute(“blah”).getValue(). There is a reason I’m not using […]
September 25, 2017

I know the feeling (Blog link)

I too, dislike being classified as a Dynamics Developer. Go read: This
February 14, 2014

Dynamics CRM 2011 – Clone Record

Plenty of guides on the interweb to do this, so I’ll just dump the code (In my example, it’s linked to a button on the incident […]
January 30, 2014

Global and Local Variables

Issue: I’ve got a function which uses oData to pull data from other parts of the system and then update values based on other options on a […]
January 28, 2014

Dynamics CRM 2011 – Form CSS with JavaScript

This is very much unsupported and can be completely useless if Microsoft decide to change ID/Class names in CRM. There are a lot better ways to […]
January 22, 2014

Dynamics CRM 2011 – Retrieve attribute value using oData

  Issue: Have a custom lookup field looking up the contact entity and need to pull specific information (email address) from the contact entity into a […]