cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
QStorm72
Regular Visitor

Library Manager Part 3 Formula Error

I'm not sure what I'm doing wrong but I can't seem to correct this one error in the patch formula for the check-out button.

QStorm72_0-1718829476673.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCBuizer
Multi Super User
Multi Super User

Hi @QStorm72 ,

 

As @Blaq1 mentioned the code can be quite unforgiving when it comes to typos: you need to be very exact when it comes to the syntax (commas, spaces, quotes, capitals, etc.).

 

The correct formula to use is this:

// Then tell it the record to submit
    {
        BookCopies: CheckOut_Form.LastSubmit.'Book Copy'.BookCopies,
        'Book Copy Reference': CheckOut_Form.LastSubmit.'Book Copy'.'Book Copy Reference',
// The important part here is that we want to indicate that the copy is now OnLoan, so that it doesn't get taken out twice
        CheckOutStatus: CheckOutStatus.'On Loan'
    }

 



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

4 REPLIES 4
Blaq1
New Member

 Hi! You've got spaces where there shouldn't be, hanging single quotes, and your Check-out_Form on the second line is spelt with a small letter. Variables are case-sensitive.

BCBuizer
Multi Super User
Multi Super User

Hi @QStorm72 ,

 

As @Blaq1 mentioned the code can be quite unforgiving when it comes to typos: you need to be very exact when it comes to the syntax (commas, spaces, quotes, capitals, etc.).

 

The correct formula to use is this:

// Then tell it the record to submit
    {
        BookCopies: CheckOut_Form.LastSubmit.'Book Copy'.BookCopies,
        'Book Copy Reference': CheckOut_Form.LastSubmit.'Book Copy'.'Book Copy Reference',
// The important part here is that we want to indicate that the copy is now OnLoan, so that it doesn't get taken out twice
        CheckOutStatus: CheckOutStatus.'On Loan'
    }

 



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
QStorm72
Regular Visitor

Okay I cleaned up the spacing and hanging quotes as well as corrected the capitalization issues and still the same result.  I know it is something simple that I'm missing but before I spend another 2 frustrating hours trying to go letter by letter, space by space I thought I would ask.

QStorm72_0-1718924490250.png

 

BCBuizer
Multi Super User
Multi Super User

Hi @QStorm72 ,

 

Syntax can be quite tedious, but as you build up familiarity, this gets easier.

 

In the screenshot you posted I saw you were using parenthesis where curly braces should be used:

BCBuizer_0-1718955050358.png

 

In my previous reply in this topic you can find how the formula should be in a text format so it is easier to compare.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (1,663)