1

I have a registration page on the site, when i clicked submit, generate a Lead record by trigger, but now does not work.

1
  • 1
    Hello Peter, welcome to SFSE! Please take a moment to visit the help center, scroll through the tour, and read How to Ask. Can you please edit your post to be more clear about what you have done so far and what behavior you observe? This level of detail is sparse and will make answers difficult to provide.
    – Adrian Larson
    Commented Apr 12, 2017 at 4:19

1 Answer 1

1

you might want to read salesforce's documentation on triggers

Apex triggers enable you to perform custom actions before or after changes to Salesforce records, such as insertions, updates, or deletions.

Basically, this means that your trigger runs on the background, and you specify when a process happens, based on different stages of when a record is processed before being added or removed from the database.

As long as a record is created/deleted from your force.com site, yes a trigger can be executed in the process.

If your tigger/apex code is failing for some reason, please include code snippets along with any error messages that we can use to help you. thanks!

1
  • you are right, My trigger has a logical error, so i cannot update record by trigger. thanks.
    – Peter Dong
    Commented Apr 12, 2017 at 6:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .