Thursday, September 27, 2018

Hide Button Based on Class Name using jquery

Hi,

I was not able to hide the button using button id through jquery.

But was able to hide the button finally using jquery through class name.


Header Insert using jquery

Hi,

Below is the code snippet that has been used to insert Header based on span id using jquery

var varCurrentStatus = $("span[id='Current_x0020_Status']").closest("tr");
    $('<h2 id="ProjectDetails" style="background-color: yellow;font-weight: BOLD;">Project Details</h2>').insertBefore(varCurrentStatus);

MS Flow to move Documents along with Metadata from one site to another site

Hi,

Our requirement is to move documents along with file properties if column document Status of type choice is equal to Final

To achieve this first we have added “When a file is created or modified(properties only)” action,mentioned source url and selected document library

Step1
Step2
Now in yes block ,added “Get file content” action I am entering the source url in the Site Address, entering Identifier as dynamic content
Step3
Thereafter add “Create file” action, entered target library url and selected target library
Entered enter Filename with extension, File Content as dynamic content.
Step4
Add the “Update file properties” action, entered the target site url and selected the destination library.

There after entered ItemId, Tite etc. as the dynamic content

Step5
Entered the source site url and entered the Identifier as the dynamic content.
After this changing the document status to Final document was getting moved to destination library.
After moving,document was getting deleted from the source library.