can 2 business process flows be merged in crm 2013? - dynamics-crm-2013

I need to merge two business process flows based on two different entities.Maybe one can be a parent BPF and other one a child BPF. Is it possible to do that? if yes then how?
And is it possible to have the same business process flow with two entities? one as primary entity and other as secondary.
Any means by which we can achieve a relationship between two BPFs?

In CRM 2013 you can create a BPF with up to 5 different entities. The condition is that each entity you add should have a 1-to-many relationship with the previous entity.
Also, it is possible to copy-paste an existing BPF, use it with a different entity and even giving it the same display name.
Some additional high-level details can be found here:
http://msdynamicscrmblog.wordpress.com/2013/11/06/business-process-flows-in-dynamics-crm-2013/

Related

Entity Framework one-to-one relationship between multiple tables

I have three entities that need to be linked. In my scenario, I have three tables users, stores and accounts.
Both users and stores can have zero or one account and each account should be either for a store or a user (see image below).
I need a one-to-one relationship between user-account and store-account. Since one-to-one relationship force the model to use one key, the user and store Ids might have conflict.
Is there any solution for this in Entity Framework or do I have a flaw in my design?
It would be much easier to use intermediate tables user_account and store_account, that would store only keys. This way you can enforce any logic you want.

CUBA : attributes for many-to-many association

Is there a standard way in CUBA to modelize attributes for many-to-many association ? Documentation omits the topic so I guess it is not. In this case, is this in the roadmap ?
For many-to-many association (e.g between Products and Providers), CUBA Studio generates automatically a link table (holding Provider ID and Product ID).
In order to handle specific attributes to this association (e.g Boolean preferredProvider) it would need to add the preferredProvider column in the link table and create a class holding the two IDs and the attribute.
It would also probably impact the platfom mechanism of fetching many-to-many associations.
I'm reasonably sure that CUBA Studio does not manage it as of 2.2.3 - no option in Studio GUI, nothing in doc. It is still of course possible to code the case manually but one would need to manually write JPQL. Not necessarily a big deal but losing a strong feature of the platform here just for one field.
So I created the preferredProvider field as a one-to-one association from Product to Provider, which is a valid workaround at the cost of an additional association.

Creating dynamic fields in CRM

I want to create a Entity which can hold fields which will be dynamic
Let's say I have a Entity named Party and another entity named People, each party can hold N number of people names
How should I create such record?
Is there any other way other than creating fields like People1, People2 as lookup to the people entity?
You should look what N:N relationship is. You will not have exactly fields but you will have possibility to put subgrid of People type to Party entity to know what People belong to this Party and vice versa.

BizAgi Tables and m-m relationships

BizAgi tables are used to view collections in 1-m relationships.
It is also possible to view m-m relationships from the point of view of one entity (thus, a 1-m relationship).
The add and delete buttons don't work with m-m relationships and no errors appear.
Has anybody used them successfully?
My interpretation with an example:
One contract has N clients, and one client has N different contracts. You want to use collections to represent this connection.
The only was I see of representing this information is to have a table of contracts, to which the edit/detail form shows a table of clients for that contract.
You might also want to consider using a form link as a column of that table.
Let me know if this is a correct interpretation.

add 2 entity from different DB with EF

does anyone know if is possible to add 2 entities into EF model from 2 DB.
If not, what suggestions can you gave me to build a query that affects 2 databases
Actually, there is no direct support for this scenario, MSFT members state it in this thread.
However, Rafael Krisller and Akhil Karkera suggest some workarounds here.
It is not possible to map a conceptual model, to two storage models.
If you find yourself needing to join between 2 databases, I have seen this accomplished via Data Services. You basically talk via URIs. So you query for URI to some set of data (ultimately gives you the surrogate key) and then you use that to query for data in the second database.