How do I create a service endpoint CRM 2013 - c#-4.0

CRM 2013 On-Premise
Hello,
I need to display a calendar of events. The information I need all comes from our custom "event" entity.
My first thought was to use this as an excuse to do something I haven't done before and add a new service endpoint. That being said I didn't find anything in the sdk or via Google.
So stumbling around in the dark I see that in the plugin registration tool I can register a service endpoint just like I do a workflow or plugin.
So do I just create a service endpoint like any other or are there special considerations?
Thank You

Because actions don't work in offline mode, I use a dummy entity "ServiceJSON" with some input parameters fields and 1 output param and a plugin register on Retrieve for this entity.
I fill the output param with my json via the plugin.
To call the "service", I just try to retrieve this entity in js (with a fetchxml) with my input parameters and I read the output :)

A new endpoint cannot be created - you have to work with the standard CRUD messages - those are available for every entity.
2013 introduced Actions which are basically custom messages: Power Objects has an intro.
A custom workflow activity can be added to an action in the workflow designer in the same way that a custom workflow activity can be added to a workflow in the workflow designer.

Related

Acumatica REST API - need info on API to show Account Inquiry / Customer Open Balances

Want to know the Acumatica REST API to be used to get Account Inquiry / Customer Open Balances. If no such web services then how to extend end point using which modules of acumatica erp
Not sure exactly what information yo are looking for but maybe the following screens could contain it :
Account Summary (GL401000)
Account Detail (GL404000)
Customer Summary (AR401000)
Customer Detail (AR402000)
Though only one of these screen is already mapped in the Default endpoint of version 18.200.001 (Account Summary -> AccountSummaryInquiry)
If you need information from the other screen, you will need to either create a custom endpoint or extend the default one (I recommend extending).
Here is information on how to do both:
Creating a new endpoint, it also contain information on how to add new entities in an endpoint : https://help-2019r1.acumatica.com/(W(14))/Wiki/ShowWiki.aspx?pageid=709351cc-566a-47b3-b153-3a9fdd690ce0
Extending an endpoint : https://help-2019r1.acumatica.com/(W(13))/Wiki/ShowWiki.aspx?pageid=c450492e-06fe-4563-95c3-efa76975415b
I recommend that you take a look at the way the AccountSummaryInquiry entity is defined and follow the same way to create the other screens if this is what you do. I mean by that that you put the parameter of the inquiry in the top level entity and the fields of the grid in a detail type sub entity.
And in order to retrieve the information properly I recommend that you use a PUT request instead of a GET as this is the proper way to do so as mentioned in the following article:
https://help-2019r1.acumatica.com/(W(12))/Help?ScreenId=ShowWiki&pageid=6340cff3-4732-4231-9e42-5d1e5e65b5dd

Sharepoint online Flow how to create a sharepoint List

I would like to dynamically create a list using Flow in SharePoint online.
I don't see that there is an option to create a new list only new item or new file.
Does anyone know if this is possible?
Unfortunately, It seems the Flow can't provide a option to create a new list currently.
As a workaround, we can create a workflow and create list using REST API.
Reference: How To Create A List Using HTTP Web Service In SharePoint Designer 2013 Workflow
thanks.
what i ended up doing is using an azure function and set that as a custom connector that would then appear as an action in flow
i used this:
https://medium.com/plumsail/how-to-call-sharepoint-from-microsoft-flow-with-a-help-of-an-azure-function-a5740794341
and then changed the logic to crearte a list instead of a folder

Is there any way to use C# to create a form for an entity for CRM 2011?

There seems to be web services to create entity, fields, solution, global option set and many more within CRM 2011 SDK. However I don't see any web services to create a form for an entity. Anyone know any back door or ways to create a forms outside of CRM 2011 using C# or VB?
You'll have to spend some time looking at FormXml to fine-tune the look of your form(s), but you can programmatically manage your entity forms via the SystemForm entity.
FormXml is stored in the SystemForm entity. You can programmatically
retrieve and update the FormXml using this entity.

SharePoint OOTB workflows 'Failed on Start' when started on create but can be started manually

I'm using the SharePoint Three-State workflow for a complete and then validate scenario on an InfoPath form. A web service creates the instance of the InfoPath form in the library. The idea is that the workflow will get a particular user to complete the form and then gets a manager to approve it. Simple stuff really.
The workflow fails to start unfortunately. The log shows an argument exception when it tries to start the workflow. Strangely it runs fine when manually started so that rules out the association data being incorrect. I've also tried this with other OOTB workflows such as Approval. I've thought it might also be the creation of the item through the web service but then it all works in my development environment.
I'm hoping someone might be able to contribute what I'm forgetting to check.
What identity is your workflow attempting to start under? If it is the SharePoint System Account, that account cannot start declarative workflows, as documented in this SharePoint Designer Blog post on MSDN.
This same problem impacted one of our workflows, where a web part programmatically created a list item and our workflow was set to trigger on item create and update actions. Manually creating items or manually running the workflow worked because it happened under our personal credentials.
Our solution was to simply create a service account in AD that the web part could impersonate. Once the list items were no longer being created under the System Account, the workflow worked as expected.
If you are receiving an argument error, I would check that the workflow is not referencing a field that would not be populated at the time of creating the list/library item. If you reference something like the ID field or a calculated column this field would not be available.

Is it possible to create a list in WSS 3.0 based on a custom template using SharePoint web services?

I want to create a SharePoint list using SharePoint web services (instance is SharePoint Services v3.0). That list should be built from the custom list template that I have created previously. Browsing through MSDN documentation resulted in the following resolutions:
services.ListsService.AddList(title, description, templateID);
or
services.ListsService.AddListFromFeature(title, description, featureGUID, templateID);
Now, if we take a look at the first implementation, there is a problem as the templateID doesn't exist for my custom template - it refers to the default ones instead.
The second implementation is no good either as I need the templateID again, but I also need the feature GUID which I have no idea how to get. Could anyone help please? Thanks.
It has been confirmed to me from people from Microsoft that, unfortunately, it is not possible to utilize features to create a SharePoint list using SharePoint web services. It can be either done by developing custom web service, or by using Object Model.

Resources