function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KeithJKeithJ 

Create an Idea - setting ownerId

Hi there.

Does anyone have any tips for setting the ownerId of a new Idea

when created from a site?

 

I have a vf page that captures data using inputText fields and sets values in

an Idea (newly instantiated) in the code and then inserts this. The reason 

I have to do it this way is because ideas are read only when exposed with sites

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
JeremyKraybillJeremyKraybill

Do you need to use ownerId? If you just want to track who submitted what, or assign, etc, couldn't you use a custom field and populate that instead?

 

Jeremy Kraybill

Austin, TX

All Answers

mikefmikef
Looks like OwnerId is not exposed in Idea through Apex or the API.
KeithJKeithJ
Ideas is a strange fish alright
JeremyKraybillJeremyKraybill

Do you need to use ownerId? If you just want to track who submitted what, or assign, etc, couldn't you use a custom field and populate that instead?

 

Jeremy Kraybill

Austin, TX

This was selected as the best answer
KeithJKeithJ

That's a better idea Jeremy. I'll take that route.

Thanks for all help & regards