07 December 2020

How do I - Check if a field is empty in PowerAutomate?

In PowerAutomate there is a empty() function that can be used, but it doesn't work the way you think.  Take the following example from a mentee question:


In this Set variable action, we are trying to set varFundDateExists to true or false depending on if there's a value in the "RD Funded Expiration Date" control.  The attempt used here is:

@not(empty(items()?['RD_x0020_Funded_x0020_Expiration_x0020_Date']))

Unfortunately, the empty() function doesn't work as expected.  How do we solve this problem then?

I've seen this suggested solution on powerusers.microsoft.com where doing a date calculation allows you to determine if the target date field is blank:

Value(Today()) - Value(items()?['RD_x0020_Funded_x0020_Expiration_x0020_Date']) = Value(Today())

The theory is that if there is a date in the target field, the value won't match today's date and return false.  The exception to this is when the target field contains today's date in which case it will return true.

The best way to do the check is as follows:

Equals(['RD_x0020_Funded_x0020_Expiration_x0020_Date'], null)


Happy coding...
C


02 December 2020

SharePoint Remote Event Receivers List

Here is the complete list of Remote Event Receivers available in Microsoft.SharePoint.Client.EventReceivers.SPRemoteEventType:

 AppInstalled

AppUninstalling

AppUpgraded

EntityInstanceAdded

EntityInstanceDeleted

EntityInstanceUpdated

FieldAdded

FieldAdding

FieldDeleted

FieldDeleting

FieldUpdated

FieldUpdating

GroupAdded

GroupAdding

GroupDeleted

GroupDeleting

GroupUpdated

GroupUpdating

GroupUserAdded

GroupUserAdding

GroupUserDeleted

GroupUserDeleting

InheritanceBreaking

InheritanceBroken

InheritanceReset

InheritanceResetting

ItemAdded

ItemAdding

ItemAttachmentAdded

ItemAttachmentAdding

ItemAttachmentDeleted

ItemAttachmentDeleting

ItemCheckedIn

ItemCheckedOut

ItemCheckingIn

ItemCheckingOut

ItemDeleted

ItemDeleting

ItemFileConverted

ItemFileMoved

ItemFileMoving

ItemUncheckedOut

ItemUncheckingOut

ItemUpdated

ItemUpdating

ItemVersionDeleted

ItemVersionDeleting

ListAdded

ListAdding

ListDeleted

ListDeleting

RoleAssignmentAdded

RoleAssignmentAdding

RoleAssignmentDeleted

RoleAssignmentDeleting

RoleDefinitionAdded

RoleDefinitionAdding

RoleDefinitionDeleted

RoleDefinitionDeleting

RoleDefinitionUpdated

RoleDefinitionUpdating

SiteDeleted

SiteDeleting

WebAdding

WebDeleted

WebDeleting

WebMoved

WebMoving

WebProvisioned

WebRestored


Happy coding!
C

30 November 2020

Failed to create the Common Data Service database in this environment with status code CRMLicenseRequired

I encountered another parity problem between GCCHigh and commercial M365 today.  This time it's in PowerAutomate when using Approvals.

My workflow contains a simple Approval as seen below.


PowerAutomate allows me to save the flow just fine.  So far so good.  Now we attempt to test the flow and the following error is generated:


When we drill down into the flow status, we see the following:



To be clear, there isn't much more in here than the 409 status code.
In order to validate the problem, we did the following:
  1. Provisioned a commercial tenant with NO database in the Common Database Service (CDS).
  2. Created a PowerAutomate flow with an Approval like in GCCHigh.
  3. Triggered the flow to test it.
It took a little while, but the approval request came through.  The delay was due to a database being spun up in CDS, even though the tenant did NOT have a license for CDS.

Conclusion: There is a parity mismatch between commercial and GCCHigh when attempting to use Approvals in PowerAutomate.  In GCCHigh, a CDS license is required.

Enjoy
C


23 November 2020

How do I - Open support cases for GCCHigh?

 The first thing newcomers to GCCHigh want to know is how to open support cases.  There are a couple of things to note as laid out in the Microsoft Docs on the subject.

  • You must be an administrator for the area for which you intend to open a support case.  That means if your case is about SharePoint Online, you must be configured in your tenant as a SharePoint Administrator.  The Microsoft Docs provide more detail on managing admins etc.
  • What the docs do not (presently) provide is actual links and directions to a starting point.  I have submitted a pull request to update the docs which will address this shortfall.  In the mean time I'll provide the guidance here:
    • Navigate your browser to https://portal.office365.us/adminportal.
    • Using the New Admin Center, navigate to Show all > Support > New Service Request.
    • Use the Subject to provide a brief description of the problem.
Hope that helps.
C

16 November 2020

It's a whole new world!

 If you've been following my blog for a while, you know that I live in the SharePoint world and blog mostly about SharePoint related topics.  I haven't had time to blog lately in part because I've been involved in a major migration effort to GCCHigh which is Microsoft's new ultra secure 365 world for DoD clients.

As we all know, security and ease of collaboration are polar opposites of the same sliding scale.  The more secure a system is, the harder collaboration in that system is going to be.  That means that there isn't parity between commercial 365 features and GCCHigh 365 features.  This can make for some frustrating times especially because ALL documentation from docs.microsoft.com is usually related to commercial 365.

Going forward, I will attempt to provide some tips, tricks and tutorials for working in the GCCHigh environment on a variety of topics like:

  • SharePoint Online in GCCHigh.
  • PowerApps in GCCHigh.
  • PowerAutomate in GCCHigh.
  • Teams in GCCHigh.
  • Azure Information Protection in GCCHigh.
  • and many more...
So stay tuned as we pivot this blog from traditional commercial SharePoint content to more specialized cloud content.

Later
C

09 November 2020

Extensions enhancement - HasNumeric() method added

The .HasNumeric() method was added to both the System.String and System.Text.StringBuilder objects.  It allows the developer the ability to quickly check if a string contains numeric values e.g.

"blog.cjvandyk.com Rocks!".HasNumeric()

will return False whereas:

"blog.cjvandyk.com Rocks 4 sure!".HasNumeric()

will return True.


For a more detail of what Extensions offer, see:







Add Extensions to your toolbox and make your coding life a little easier.  

Happy coding
C

02 November 2020

Extensions enhancement - HasUpper() method added.

The .HasUpper() method was added to both the System.String and System.Text.StringBuilder objects.  It allows the developer the ability to quickly check if a string contains numeric values e.g.

"blog.cjvandyk.com Rocks!".HasUpper()

will return True whereas:

"blog.cjvandyk.com rocks!".HasUpper()

will return False.


For a more detail of what Extensions offer, see:







Add Extensions to your toolbox and make your coding life a little easier.  

Happy coding
C

SharePoint Remote Event Receivers are DEAD!!!

 Well, the time has finally come.  It was evident when Microsoft started pushing everyone to WebHooks, but this FAQ and related announcement...