Hot answers tagged

3

Should you not do UserCustomAction.Update() after you set the new script source? (also you may want to store the action in a variable: try{ $theAction = $customActions.GetById($Id) $theAction.ScriptSrc = $ScriptSrc $theAction.Update() $context.ExecuteQuery() Write-Host "CustomAction $Id updated" -ForegroundColor Green } catch{ ...


2

Use the PnP PowerShell CmdLets, and you can do this with one line of code: Add-SPOTaxonomyField -DisplayName "Region" -InternalName "Region" -TermSetPath "Contoso|Region" Documentation Implementation


2

You can use the MAX function and output it in Date format. =MAX([date1],[date2]) If the two dates are blank, it will output a default date in 1899, so maybe put in a IF condition in there.


2

I am no exeprt yet, but spent the last days on CustomActions and REST because the New Library View has nothing SharePoint left but CustomActions (and no JSOM on the page it for creating/changing them) There are two types of CustomActions/Scriptlinks involved here: Type 2 = Site(Collection) Executes on every page inside the SiteCollection ...


2

It should be something like below: The way it is right now, I don't think the workflow even enters the "then email..." activity. Of course, you would want to place the second condition with an "else" statement, but with MSPaint I thought of keeping it simple.


2

You should refer this link once. This post contains the code for authenticating with your SharePoint Online and upload a file into the given library. class Program { static void Main(string[] args) { using (ClientContext clientContext = new ClientContext("https://xxxx.sharepoint.com/sites/SiteName")) { ...


1

I found the answer here: http://www.networksteve.com/enterprise/topic.php/How_to_fix_this_Designer_Workflow_error/?TopicId=91458&Posts=3 In short there was a "hidden" else if condition from a previous attempt and you have to hover over each section in the wf and delete anything that's empty. Not at all obvious and not the best of designs, but pretty ...


1

One possible solution: Create a Notes column, then create a list form, named something like "CustomEdit.aspx" that has nothing in it but the Notes field (hide all the other columns in the list), and use another column, named something like EditNotes to have the hyperlink to the custom edit form. Something like: ="<a ...


1

Use a standard Description column and apply CSR to make it look and behave anyway you want. CSS can clean the View /* ListView - make Description fields a maximum width and height, and show full text on mouseover*/ /*.ms-itmhover is the TR row*/ .ms-vb2 .ms-rtestate-field{ max-width:40em; max-height:2em; overflow:hidden; } .ms-vb2 ...


1

Column C formula is =IF([ColumnA]>[ColumnB], [ColumnA], [ColumnB])


1

I think this maybe what you are looking for but we completely need more information like "What you are really looking to accomplish;" Try... =IF([Modified]>[ColumnA], [Modified], IF([ColumnA]>[ColumnB], [ColumnA], [ColumnB]))


1

Adobe Illustrator files are accepted by Adobe programs but is not a file-format that Web Browsers accept or understand So for you logo you're stuck with JPG , PNG , GIF


1

Why not inject some simple javascript in a custom displayform, make it as the default, and do a simple redirection on the default form? <script> var newUrl = window.location.toString().replace("DisplayForm", "EditForm"); window.location = newUrl; </script>


1

For the specific example you cite, clicking a link on a lookup column (presumably from a list view) and having that redirect to the edit form for the lookup item instead of the display form, I would think using Client Side Rendering to rewrite the link URL for the lookup field would be appropriate. With a little research you can see that links to the ...


1

If you want to use the SharePoint app model then yes, you must allow posts. SharePoint sends authorization & authentication data to your app via post. Your app needs that data to generate a client context. Take a look at the tokenhelper.cs file and/or the landing page code behind & you should see the post data processing



Only top voted, non community-wiki answers of a minimum length are eligible