CMDBuild Forum

webservices create card with relationship

I've to create a new card in CMDBuild via webservices.

I use createCard method and usually work properly.

Now I've a card with a mandatory reference attribute (that is a reference with a relation).

So I can't create card cause I haven't the relation created, but I can't create relation before card creation (to create relation I need card Id)

could you give me any suggestions?

 

thanks

 

If you set the reference attribute with the ID of the card you want to link, the relationship is also automatically created.
CMDBuild Team

Previously Tecnoteca wrote:

If you set the reference attribute with the ID of the card you want to link, the relationship is also automatically created.
CMDBuild Team

 

Attribute class have three attributes (name, code and value).
 
I think in  this case I've to set code attribute.
 
I've to set using related Id card or related card Code Attribute?
 
thanks

Previously luca wrote:

Previously Tecnoteca wrote:
If you set the reference attribute with the ID of the card you want to link, the relationship is also automatically created.
CMDBuild Team

 

Attribute class have three attributes (name, code and value).
 
I think in  this case I've to set code attribute.
 
I've to set using related Id card or related card Code Attribute?
 
thanks
Hi, 
I've tried what you have suggested but it does't work!!!
 
So at the moment isn't possible, via Webservices, to create a card with a mandatory reference attribute.
 
Could you suggest me another method or fix this bug.
thanks