I have created a library management app and want that when i borrow a book the availabelity of book modifies to not available and when the book is returned it modifies to available. Plese help me.
What's your data model like? If you have a Book object, you could take a look at adding two quick actions to the book: a "borrow" quick action that takes in the borrower's name and sets the availability to unavailable, and a "return" action that updates the availability to available.
You could even get a bit fancy with it and have an expected date of return field on the book object, set to say 2 weeks from the time of borrowing. This expected date would allow you to fire off a process builder email alert to the borrower, letting them know it's time to return the book.
Hi Abhilesh, You can have a look up relation to book object in the borrower object. So that you select a book id when the borrower takes a book. or you can have a book-borrower junction object if the borrower can take more than one book at a time. 2 ways: you can define a after update trigger to update the availability of the book in the borrower object or the book-borrower junction object. OR you can define a process builder(process builder can update between different related objects). select the borrower object and in the action update the field in the book object to "not available"
Let me know if the answer is confusing so that i can explain in detail.
Hi Abhilesh, Please give some insight on what are the objects and the fields you have so that we can explain in detail. I already gave you 2 options: 1) Trigger and if you are finding problems with understanding trigger then 2) process builder. so u can use any one option. Quick actions are buttons in the global layout so i cannot say how it will achieve your result.(no idea). Veena.
What's your data model like? If you have a Book object, you could take a look at adding two quick actions to the book: a "borrow" quick action that takes in the borrower's name and sets the availability to unavailable, and a "return" action that updates the availability to available.
You could even get a bit fancy with it and have an expected date of return field on the book object, set to say 2 weeks from the time of borrowing. This expected date would allow you to fire off a process builder email alert to the borrower, letting them know it's time to return the book.
You can have a look up relation to book object in the borrower object. So that you select a book id when the borrower takes a book.
or you can have a book-borrower junction object if the borrower can take more than one book at a time.
2 ways:
you can define a after update trigger to update the availability of the book in the borrower object or the book-borrower junction object.
OR
you can define a process builder(process builder can update between different related objects). select the borrower object and in the action update the field in the book object to "not available"
Let me know if the answer is confusing so that i can explain in detail.
Please give some insight on what are the objects and the fields you have so that we can explain in detail.
I already gave you 2 options:
1) Trigger
and if you are finding problems with understanding trigger then
2) process builder.
so u can use any one option.
Quick actions are buttons in the global layout so i cannot say how it will achieve your result.(no idea).
Veena.
I'm a newbie to Salesforce and was wondering how you built this tool. I'm building a similar app, but there aren't a lot of resources...