Update Association Parameters SharePoint 2013 WorkFlow via powershell in SharePoint Online / CSOM

Hi have the following code which outputs all the associated 2013 workflows in my SPO site (i have omitted connecting to site etc. as it is unimportant):

$WorkflowServicesManager = New-Object Microsoft.SharePoint.Client.WorkflowServices.WorkflowServicesManager($Ctx, $Web)
ForEach($List in $Lists)
            #Get SharePoint 2013 Workflows Associated with the List    
            $WorkflowSubscriptionService = $workflowServicesManager.GetWorkflowSubscriptionService()
            $WorkflowAssociations = $WorkflowSubscriptionService.EnumerateSubscriptionsByList($List.Id)
            #Loop through each workflow associated with the List
            Foreach ($Association in $WorkflowAssociations | Where {$_.Name -notlike "*Previous Version*"})
                Write-host -f Green "`t Found Workflow '$($Association.Name)' in list '$($List.Title)'"
                if ($Association.Name -eq "RequestNotificationWorkflow"){
                $Association.SetExternalVariable("Service Admin Email","Now changed")

Now i have my workflow is there anyway through powershell to update my custom association parameters. I have tried the setParameter and SetExternalVariable but neither of these work. The Get versions of these come back as false also.
How would i go about updating the value in these parameters?

workflow – How can I send an email notification for when a form is updated?

I have been asked to create a form for structural errors. In this form, the requester will add the informations requeride and assign the task to the responsible 1. The responsible 1 will verify the task and, if the error exists will assign the corretion to the engineer (responsible 2), otherwise the responsible 1 will just complete the task.

I know how to set the sharepoint designer to send an email to the requester and the responsible 1 when the form is created, but I don’t know how to send an email (to the responsible 1 and 2) for when the form is updated with new informations. Can someone help me?

workflow – Seeking examples of a modal window that has Download and Upload actions?

‘For some reason’ you want to have these two buttons in a modal window…

You can have the two call-to-actions in a screen, but it seems strange to have them in the same modal window because if you click on one button or the other you still have to expand the modal window or open a new one to accommodate the action.

If there is a specific set of requirements that means you have to design things this way, then perhaps a solution can be provided, but otherwise the lack of such interfaces and design patterns suggests that it is not really suitable in general use.

workflow – Flow – “Item created” trigger skipped but WF continues

I have a very strange issue. I have created a flow with the trigger “When an Item is created or modified”. It is working just fine when I am creating a new item or modifying it. I have added a condition to the trigger to start only when a specific field is empty (I am filling in that field with this flow so I had to prevent cycles):
enter image description here
It is working fine too…. however every 6 hours the flow starts (without any change to the items on the list!) skips the trigger and fails as the trigger body is null:

enter image description here
enter image description here

Any idea what is wrong? The flow is working just fine except this strange fail every 6 hours…

Site workflow to send reminder email to Created By based on status of the item

I want to create site workflow to send a reminder email to created by(emails) when Item created is more than 30 days and choice field called "Status" is "open".

Thanks in advance

workflow – Using My Own UnqID in List and Library

I created the following flow. It almost gets me what I want.

It updates the FMSSID that I want to the new document posted to the Library. 

However, the flow is updating the document FMSSID based on the ‘ID’ created by SharePoint.

My desires is to have my own ‘UnqID’ used to tie a List Item to a Library Document. I’ve already created the auto-generating field in PowerApps. The UnqID is uploaded to the List anytime a new document is created. I need that same ‘UnqID’ referenced in the Patch or Flow so that is also populates along side the new document posted in the Library and acts as its UnqID.

enter image description here

What is the “workflow,” like when managing a custom GIT fork?

I’m thinking of creating a custom fork of a program to customize and fit my day-to-day uses a bit more, and was wondering how I would manage the fork to keep up to date with bug fixes and stuff in the original repository.

To keep things simple let’s use a fictional piece of software, let’s call it “Fruit Organizer,” and pretend it’s a program that lets you create and organize detailed lists of different types of fruit.

Now, this program is great and has a lot of features and algorithms that are fast and useful for creating, organizing, and getting information on all different types of fruit. Thing is, in my day job I work only with apples, but lots of different types of apples. Since this is the case, I make a custom fork with the following changes:

  1. I delete all of the code that has to do specifically with other fruits such as bananas, oranges, etc. and modify the remaining code to work without it.
  2. I modify the existing code so that all text references only refer to apples, and rename the program to “Apple Organizer.”
  3. I add a bunch of functions and features that specifically deal with apples, to make dealing with apples easier.

Now obviously this is a worst-case-scenario for a fork, but I’m curious pulling from upstream would work in the different cases.

  1. The upstream repository updates all the banana algorithms to be much more efficient. Since this code no longer exists in my repository, what happens when I merge?
  2. Upstream fixes a bunch of spelling errors in the text strings. Thing is, I already changed all of the text strings in the program to reference apples so almost none of the original text is there anymore. Is my text replaced with theirs?
  3. When I added my custom functions I obviously had to change some references to point to my custom functions where things like getFruit() instead calls getAllApples(). If upstream adds some new functions themselves that change these references, will their references replace my references? Also if they add new functions (even if they are irrelevant such as getBananas()) I assume those will be just be added to the program correct?

How do I manage this? Is the solution just to be extremely careful and cherry-pick each and every commit to make sure it applies to me?

SharePoint suspended workflow – SharePoint Stack Exchange

According to my understanding of your problem,when you run a Microsoft SharePoint 2013 workflow in SharePoint Online, you experience the following behavior:
The status of the workflow returns an internal status of Suspended.

Please follow these steps:

  1. Open the affected workflow in Microsoft SharePoint Designer 2013.

  2. On the Workflow Settings page for the workflow, clear the Automatically update the workflow status to the current stage name check box.

enter image description here

  1. Save the workflow, and then and publish it to the SharePoint website.

  2. Run the workflow again.

workflow – Using Google Location History to add GPS tags to Lightroom photos?

I import photos through Lightroom, and I’d like to tag them with GPS coordinates, can someone suggest a good workflow for this?

Years ago, I used to get GPS tracks from my Google Location History, then run a tool to automatically apply tags to these photos, but those scripts are likely obsolete.

2013 – SP2013 – Start Workflow from Button with redirect

The title says it all. Functional needs are simple. User selects an item from the list, we are then using (no InfoPath) a custom WebPart using jQuery to build item’s page. There needs to be a button that when pressed executes a Workflow and then redirects user to a view in another list. I have found a few threads but none have produced the desired results.

I did come across a thread that used this as a solution (social.msdn.microsoft.com/Forums/sqlserver/en-US/85eb2e52-f4bc-4e9e-967b-67a5971762c8/how-to-stop-redirection-in-sharepoint-designer-custom-action-to-initiate-workflow?forum=sharepointcustomization)

/_layouts/15/wfstart.aspx?List={ListId}&ID={ItemId}&TemplateID={<templateID of workflow>}&SubscriptionID={<SubscriptionID of workflow>}&Source=<url>

Keep List={ListId}&ID={ItemId}

< url > is wherever you want the user to navigate to after you start the workflow.

< template id of workflow > is the template ID of the workflow you get by going to the initiation form manually and copying it from the URL.

Using the above code I created this block of code:

var listId = _spPageContextInfo.pageListId; 
var currentItemId = parseInt(GetUrlKeyValue('ID'));
var TemplateID='8623F06A-51D7-445D-A682-0D9982F63322';  // Taken from Designer
var SubscriptionID='4146511B-F264-48B3-9916-48E1FDC55FC7'; // Taken from Designer
var redirectURL = '< REPLACE with URL >';

let workflowURL = `/_layouts/15/wfstart.aspx?List={${listId}}&ID={${currentItemId}}&TemplateID={${TemplateID}}&SubscriptionID={${SubscriptionID}}&Source=${redirectURL}`;
window.location.href = workflowURL;

My problem when I click the button I get a 404 error, page not found. I have also tried to add the complete team.com/ address before the /_layout and there is no difference.

Any thoughts on how to fix this or alternate solutions would be great.