quote statecode

quote statecode

Post by TWFne » Fri, 18 May 2007 17:12:01


Hi!

I'd like to change the statecode from a quote that I created , my code is
the follow:


proy.statecode = new QuoteStateInfo();
proy.statecode.Value = new QuoteState();
proy.statecode.Value = QuoteState.Activo;
proy.statuscode = new Status();
proy.statuscode.Value = 13;


if (nuevo_proyecto)
idProyecto = CrmSrv.Create(proy);
else
CrmSrv.Update(proy);


but always create my quote like a BORRADOR (Draft) state, how can I change
this attribute?

thanks a lot

--
Magy
 
 
 

quote statecode

Post by TWFne » Fri, 18 May 2007 17:34:00

oohhhh he trobat la resposta:

SetStateQuoteRequest setStateQuote = new SetStateQuoteRequest();
setStateQuote.EntityId = idProyecto;
setStateQuote.QuoteState = QuoteState.Activo; //---->Activo
setStateQuote.QuoteStatus = 13; //---->Presentado
CrmSrv.Execute(setStateQuote);



thanks :)


--
Magy