How do I set Sale Stage with CRM Scripting?

Hi Community.

I'm trying to create a Sale through Crm Scripting, but I can't figure out how to set the Stage.

There is a class NSSaleStageEntity, but I can't see where to use it in the NSSaleEntity class.

I've managed to set all the other values (type, description e.g.) but I'm still missing this one thing.

Customer is Online.

 

RE: How do I set Sale Stage with CRM Scripting?

Hello,

You need to use the SetRating method on the NSSaleEnity, providing it an NSRating instance.

Sale Stage = Rating in the web services layer.

Av: David Hollegien 19. sep 2018

RE: How do I set Sale Stage with CRM Scripting?

Aaahh.. that make sense - thank you :).

Av: Kasper Rosenlund 19. sep 2018