cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhanney2323
Resolver I
Resolver I

Embed peninput signature in pdf

Can someone help me figure out why I cannot for the life of me get this image of a users peninput signature to appear in my pdf. I keep getting a blank image with an x in it. I am using flow for this and the way I'm making the pdf is to compose it in an html schema, create and html file and then convert it to pdf. Here is my current flow: 

 

bhanney2323_0-1644263256268.png

The field signed signature is a multitext column and gets sent this data from the following variable

Set(penInputEncodedImage, JSON(signature.Image,IncludeBinaryData))

And here is my usual output

bhanney2323_1-1644263447039.png

Can someone tell me what's going wrong here? I feel like I've tried a bunch of different ways but none work or they don't really fit with the solution I'm trying to achieve. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Most Valuable Professional
Most Valuable Professional

Hi @bhanney2323 ,

You just need

Set(
   penInputEncodedImage,
   With(
      {
         wJSON: 
         JSON(
            signature.Image,
            JSONFormat.IncludeBinaryData
         )
      },
      Substitute(
         wJSON,
         """",
         ""
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

8 REPLIES 8
EddieE
Super User
Super User

@bhanney2323 

You most likely need to replace the rabbit ears (ie " and " ) in your signature string with Blank, eg

 

replace(outputs('Signed Signature'), ' " ', '')

 

... or something similar?

 

@RezaDorrani has a video that explains how to do this exact thing here. You can skip ahead to the 17min mark if you want a quick explanation.


If my response solves your question, please accept as a solution.
Thank you!
WarrenBelz
Most Valuable Professional
Most Valuable Professional

Hi @bhanney2323 ,

You need to get down to the "raw" Base64

Set(
   penInputEncodedImage,
   With(
      {
         wJSON: 
         JSON(
            signature.Image,
            JSONFormat.IncludeBinaryData
         )
      },
      Mid(
         wJSON,
         Find(
            ",",
            wJSON
         ) + 1,
         Len(wJSON) - 
         Find(
            ",",
            wJSON
         ) - 1
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

I just tried setting that same variable with your code (copied and pasted) in powerapps and then resubmitted my form, but unfortunately, still the same result

bhanney2323_0-1644270548807.png

Here is the output of the variable after the signature has been signed and it shows the raw base64

 

 

iVBORw0KGgoAAAANSUhEUgAAA6UAAAD9CAYAAABEFNFBAAAAAXNSR0IArs4c6QAAIABJREFUeF7t3QmwfFddJ/Cv7BAS0AQIi2EfZBNlkxFhgBHQmBLEAWVQwhgVEFSEoLI6M8iighmgxAJUFpFim4TBYRjWADqAUShACogiiCyRYMISIKwzUz9yWpqX9/6v3+vl3Hv7c6u6IP9/37N8zvl331+f7TviIkCAAAECBAgQIECAAAECnQS+o1O+siVAgAABAgQIECBAgAABAhGU6gQECBAgQIAAAQIECBAg0E1AUNqNXsYECBAgQIAAAQIECBAgICjVBwgQIECAAAECBAgQIECgm4CgtBu9jAkQIECAAAECBAgQIEBAUKoPECBAgAABAgQIECBAgEA3AUFpN3oZEyBAgAABAgQIECBAgICgVB8gQIAAAQIECBAgQIAAgW4CgtJu9DImQIAAAQIECBAgQIAAAUGpPkCAAAECBAgQIECAAAEC3QQEpd3oZUyAAAECBAgQIECAAAECglJ9gAABAgQIECBAgAABAgS6CQhKu9HLmAABAgQIECBAgAABAgQEpfoAAQIECBAgQIAAAQIECHQTEJR2o5cxAQIECBAgQIAAAQIECAhK9QECBAgQIECAAAECBAgQ6CYgKO1GL2MCBAgQIECAAAECBAgQEJTqAwQIECBAgAABAgQIECDQTUBQ2o1exgQIECBAgAABAgQIECAgKNUHCBAgQIAAAQIECBAgQKCbgKC0G72MCRAgQIAAAQIECBAgQEBQqg8QIECAAAECBAgQIECAQDcBQWk3ehkTIECAAAECBAgQIECAgKBUHyBAgAABAgQIECBAgACBbgKC0m70MiZAgAABAgQIECBAgAABQak+QIAAAQIECBAgQIAAAQLdBASl3ehlTIAAAQIECBAgQIAAAQKCUn2AAAECBAgQIECAAAECBLoJCEq70cuYAAECBAgQIECAAAECBASl+gABAgQIECBAgAABAgQIdBMQlHajlzEBAgQIECBAgAABAgQICEr1AQIECBAgQIAAAQIECBDoJiAo7UYvYwIECBAgQIAAAQIECBAQlOoDBAgQIECAAAECBAgQINBNQFDajV7GBAgQIECAAAECBAgQICAo1QcIECBAgAABAgQIECBAoJuAoLQbvYwJECBAgAABAgQIECBAQFCqDxAgQIAAAQIECBAgQIBANwFBaTd6GRMgQIAAAQIECBAgQICAoFQfIECAAAECBAgQIECAAIFuAoLSbvQyJkCAAAECBAgQIECAAAFBqT5AgAABAgQIECBAgAABAt0EBKXd6GVMgAABAgQIECBAgAABAoJSfYAAAQIECBAgQIAAAQIEugkISrvRy5gAAQIECBAgQIAAAQIEBKX6AAECBAgQIECAAAECBAh0ExCUdqOXMQECBAgQIECAAAECBAgISvUBAgQIECBAgAABAgQIEOgmICjtRi9jAgQIECBAgAABAgQIEBCU6gMECBAgQIAAAQIECBAg0E1AUNqNXsYECBAgQIAAAQIECBAgICjVBwgQIECAAAECBAgQIECgm4CgtBu9jAkQIECAAAECBAgQIEBAUKoPECBAgAABAgQIECBAgEA3AUFpN3oZEyBAgAABAgQIECBAgICgVB8gQIAAAQIECBAgQIAAgW4CgtJu9DImQIAAAQIECBAgQIAAAUGpPkCAAAECBAgQIECAAAEC3QQEpd3o15Lxg5LcJcl91pK6RAkQIECAAAECBAgQILBiAUHpikE7J3dmkjsleWCS53Qui+wJECBAgAABAgQIECCwr4CgdF+iUb3hvklenOSdSW49qpIrLAECBAgQIECAAAECWykgKJ1es787yS2Mlk6vYdWIAAECBAgQIECAwBQFBKXTa9X7J3lBkvOSHDe96qkRAQIECBAgQIAAAQJTEhCUTqk1v1WXLyQ5KsnHk3z3NKuoVgQIECBAYG0Cxyb53ST/NskPJTl/bTlJmAABAgQiKJ1mJ7hJknckOVpgOs0GVisCuwh8I8klkvy/9u/+BEoECBxK4CFJfjvJlZN8KckNkpxzqJTcRIAAAQILCQhKF2Ia5ZsqMP0/7UvViOkom1ChCRxIoILR+av++wNJb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gQIAAAQIECBAgQEBQqg8QIECAAAECBAgQIECAQDcBQWk3ehkTIECAAAECBAgQIECAgKBUHyBAgAABAgQIECBAgACBbgKC0m70MiZAgAABAgQIECBAgAABQak+QIAAAQIECBAgQIAAAQLdBASl3ehlTIAAAQIECBAgQIAAAQKCUn2AAAECBAgQIECAAAECBLoJCEq70cuYAAECBAgQIECAAAECBASl+gABAgQIECBAgAABAgQIdBMQlHajlzEBAgQIECBAgAABAgQICEr1AQIECBAgQIAAAQIECBDoJiAo7UYvYwIECBAgQIAAAQIECBAQlOoDBAgQIECAAAECBAgQINBNQFDajV7GBAgQIECAAAECBAgQICAo1QcIECBAgAABAgQIECBAoJuAoLQbvYwJECBAgAABAgQIECBAQFCqDxAgQIAAAQIECBAgQIBANwFBaTd6GRMgQIAAAQIECBAgQICAoFQfIECAAAECBAgQIECAAIFuAoLSbvQyJkCAAAECBAgQIECAAAFBqT5AgAABAgQIECBAgAABAt0EBKXd6GVMgAABAgQIECBAgAABAoJSfYAAAQIECBAgQIAAAQIEugkISrvRy5gAAQIECBAgQIAAAQIEBKX6AAECBAgQIECAAAECBAh0ExCUdqOXMQECBAgQIECAAAECBAgISvUBAgQIECBAgAABAgQIEOgmICjtRi9jAgQIECBAgAABAgQIEBCU6gMECBAgQIAAAQIECBAg0E1AUNqNXsYECBAgQIAAAQIECBAgICjVBwgQIECAAAECBAgQIECgm4CgtBu9jAkQIECAAAECBAgQIEBAUKoPECBAgAABAgQIECBAgEA3AUFpN3oZEyBAgAABAgQIECBAgICgVB8gQIAAAQIECBAgQIAAgW4CgtJu9DImQIAAAQIECBAgQIAAAUGpPkCAAAECBAgQIECAAAEC3QQEpd3oZUyAAAECBAgQIECAAAECglJ9gAABAgQIECBAgAABAgS6CQhKu9HLmAABAgQIECBAgAABAgQEpfoAAQIECBAgQIAAAQIECHQTEJR2o5cxAQIECBAgQIAAAQIECAhK9QECBAgQIECAAAECBAgQ6CYgKO1GL2MCBAgQIECAAAECBAgQEJTqAwQIECBAgAABAgQIECDQTUBQ2o1exgQIECBAgAABAgQIECAgKNUHCBAgQIAAAQIECBAgQKCbgKC0G72MCRAgQIAAAQIECBAgQEBQqg8QIECAAAECBAgQIECAQDcBQWk3ehkTIECAAAECBAgQIECAgKBUHyBAgAABAgQIECBAgACBbgKC0m70MiZAgAABAgQIECBAgAABQak+QIAAAQIECBAgQIAAAQLdBASl3ehlTIAAAQIECBAgQIAAAQKCUn2AAAECBAgQIECAAAECBLoJCEq70cuYAAECBAgQIECAAAECBASl+gABAgQIECBAgAABAgQIdBMQlHajlzEBAgQIECBAgAABAgQICEr1AQIECBAgQIAAAQIECBDoJiAo7UYvYwIECBAgQIAAAQIECBAQlOoDBAgQIECAAAECBAgQINBNQFDajV7GBAgQIECAAAECBAgQICAo1QcIECBAgAABAgQIECBAoJuAoLQbvYwJECBAgAABAgQIECBAQFCqDxAgQIAAAQIECBAgQIBANwFBaTd6GRMgQIAAAQIECBAgQICAoFQfIECAAAECBAgQIECAAIFuAoLSbvQyJkCAAAECBAgQIECAAAFBqT5AgAABAgQIECBAgAABAt0EBKXd6GVMgAABAgQIECBAgAABAoJSfYAAAQIECBAgQIAAAQIEugkISrvRy5gAAQIECBAgQIAAAQIEBKX6AAECBAgQIECAAAECBAh0ExCUdqOXMQECBAgQIECAAAECBAj8f9eo2yuaCt5uAAAAAElFTkSuQmCC

 

 

WarrenBelz
Most Valuable Professional
Most Valuable Professional

@bhanney2323 .

I was looking for the video @EddieE found - it is a while since I have done one of these - you just need to get the "" off the end (not the raw JSON, which you need to create an image.

bhanney2323
Resolver I
Resolver I

I am trying everything to get the extra " off but nothing seems to be working. Im starting to think my html is off somewhere

 

I am using this as the variable to send to the 'signed signature' multiline text column in sharepoint: 

 

 

Set(
   penInputEncodedImage,
   With(
      {
         wJSON: 
         JSON(
            signature.Image,
            JSONFormat.IncludeBinaryData
         )
      },
      Mid(
         wJSON,
         Find(
            ",",
            wJSON
         ) + 1,
         Len(wJSON) - 
         Find(
            ",",
            wJSON
         ) - 1
      )
   )
)

 

 

And then I am using a compose action to get rid of any extra quotes: 

 

 

replace(outputs('Get_item')?['body/Signed_x0020_Signature'],' " ','')

 

 

And here is the part of my html compose action where I want to add the image:

bhanney2323_0-1644345885112.png

Does anything seem off?

 

Here is what my usual output looks like: 

bhanney2323_1-1644346303364.png

Update: I watched the video Eddie E sent over and while that is my exact scenario, still doesn't work for me. I even tried changing the variable that stores the signature to what Reza uses in the video 

Set(penInputEncodedImage, JSON(signature.Image,IncludeBinaryData))

But same result. The only difference Im finding is that he is triggering the flow from a powerapps trigger and I am triggering it from a sharepoint list created/modified trigger. 

WarrenBelz
Most Valuable Professional
Most Valuable Professional

Hi @bhanney2323 ,

You just need

Set(
   penInputEncodedImage,
   With(
      {
         wJSON: 
         JSON(
            signature.Image,
            JSONFormat.IncludeBinaryData
         )
      },
      Substitute(
         wJSON,
         """",
         ""
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

You're a freaking wizard! Thank you so much, this was driving me bananas. I still don't completely understand why this works whereas doing this in flow like Eddie E and Reza recommended with the 

replace(outputs('Get_item')?['body/Signed_x0020_Signature'],' " ','')

doesn't work, but as long as it works I guess its okay. 

 

WarrenBelz
Most Valuable Professional
Most Valuable Professional

Hi @bhanney2323 ,

Just an explanation - there are two "forms" of Base64 Text used by different processes. Examples - if you want to send the first one (raw Base64) I posted to Power Automate, you can use base64ToBinary in the Flow to create an image with it in a SharePoint Library. If you want to display the image in Power Apps directly from the SharePoint multi-line text field, you need to store it with the "header" as in this one and only remove the leading and training quotes. I had a bit of a brain fade and posted the wrong one for the HTML usage.

I have a blog on SharePoint Images that may be of interest to you.

Helpful resources

Announcements

Tuesday Tip | How to Provide Feedback

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We are always looking to improve your experience on our community platform, and your feedback is invaluable to us. Whether it's a suggestion for a new feature, an idea to enhance the platform, or a concern you'd like to address, we want to hear from you!   How to Share Your Feedback: Each of our communities has its own Feedback forum where the Community Managers can assist you directly in.  ●  Power Apps  ● Power Automate   ● Power Pages   ● Copilot Studio   We also have many articles on community account FAQs, or how to navigate the community, which can be found below.   Community Accounts & Registration:  https://powerusers.microsoft.com/t5/Community-Accounts-Registration/tkb-p/pa_community_accounts_regi...   Using the Community: https://powerusers.microsoft.com/t5/Using-the-Community/tkb-p/pa_using_the_community   Our Commitment to You: We are committed to creating a collaborative and supportive environment. All feedback is reviewed by our community managers, and we strive to implement changes that will benefit all members.   Thank you for being a part of our community. Your contributions help us grow and improve together!

Copilot Cookbook Challenge | Win Tickets to the Power Platform Conference

We are excited to announce the "The Copilot Cookbook Community Challenge is a great way to showcase your creativity and connect with others. Plus, you could win tickets to the Power Platform Community Conference in Las Vegas in September 2024 as an amazing bonus.   Two ways to enter: 1. Copilot Studio: https://aka.ms/CS_Copilot_Cookbook_Challenge 2. Power Apps Copilot Cookbook Gallery: https://aka.ms/PA_Copilot_Cookbook_Challenge   There will be 5 chances to qualify for the final drawing: Early Bird Entries: March 1 - June 2Week 1: June 3 - June 9Week 2: June 10 - June 16Week 3: June 17 - June 23Week 4: June 24 - June 30     At the end of each week, we will draw 5 random names from every user who has posted a qualifying Copilot Studio template, sample or demo in the Copilot Studio Cookbook or a qualifying Power Apps Copilot sample or demo in the Power Apps Copilot Cookbook. Users who are not drawn in a given week will be added to the pool for the next week. Users can qualify more than once, but no more than once per week. Four winners will be drawn at random from the total qualifying entrants. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once. If they are drawn multiple times, another user will be drawn at random. Prizes:  One Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value, does not include travel, lodging, or any other expenses) Winners are also eligible to do a 10-minute presentation of their demo or solution in a community solutions showcase at the event. To qualify for the drawing, templates, samples or demos must be related to Copilot Studio or a Copilot feature of Power Apps, Power Automate, or Power Pages, and must demonstrate or solve a complete unique and useful business or technical problem. Power Automate and Power Pagers posts should be added to the Power Apps Cookbook. Final determination of qualifying entries is at the sole discretion of Microsoft. Weekly updates and the Final random winners will be posted in the News & Announcements section in the communities on July 29th, 2024. Did you submit entries early?  Early Bird Entries March 1 - June 2:  If you posted something in the "early bird" time frame complete this form: https://aka.ms/Copilot_Challenge_EarlyBirds if you would like to be entered in the challenge.

May 2024 Community Newsletter

It's time for the May Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.        COMMUNITY HIGHLIGHTS Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzcreativeopinionExpiscornovusFubarAmikNived_NambiarPstork1OliverRodriguesmmbr1606ManishSolankiMattJimisonragavanrajantimlSudeepGhatakNZrenatoromaoLucas001iAm_ManCatAlexEncodianfernandosilvaOOlashynJmanriqueriosChriddle  BCBuizerExpiscornovus  a33ikBCBuizer  SebSDavid_MA  dpoggermannPstork1     LATEST NEWS   We saw a whole host of amazing announcements at this year's #MSBuild, so we thought we'd share with you a bite sized breakdown of the big news via blogs from Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab, and ✊🏾Justin Graham :   New ways of development with copilots and Microsoft Power PlatformRevolutionize the way you work with Automation and AIPower Apps is making it easier for developers to build with Microsoft Copilot and each otherCopilot in Microsoft Fabric is now generally available in Power BIUnlock new levels of productivity with Microsoft Dataverse and Microsoft Copilot StudioMicrosoft Copilot Studio: Building copilots with agent capabilitiesMicrosoft Power Pages is bringing the new standard in secure, AI-powered capabilities   If you'd like to relive some of the highlights from Microsoft Build 2024, click the image below to watch a great selection of on-demand Keynotes and sessions!         WorkLab Podcast with Charles Lamanna   Check out the latest episode of the WorkLab podcast with CVP of Business Apps and Platforms at Microsoft, Charles Lamanna, as he explains the ever-expanding evolution of Copilot, and how AI is offering new opportunities for business leaders. Grab yourself a coffee and click the image below to take a listen.       Event Recap: European Collaboration and Cloud Summits 2024   Click the image below to read a great recap by Mark Kashman about the recent European Collaboration Summit and European Cloud Summit held in Germany during May 2024. Great work everybody!       UPCOMING EVENTS European Power Platform Conference - SOLD OUT! Congrats to everyone who managed to grab a ticket for the now SOLD OUT European Power Platform Conference, which takes place in beautiful Brussels, Belgium, on 11-13th June. With a great keynote planned from Ryan Cunningham and Sangya Singh, plus expert sessions from the likes of Aaron Rendell, Amira Beldjilali, Andrew Bibby, Angeliki Patsiavou, Ben den Blanken, Cathrine Bruvold, Charles Sexton, Chloé Moreau, Chris Huntingford, Claire Edgson, Damien Bird, Emma-Claire Shaw, Gilles Pommier, Guro Faller, Henry Jammes, Hugo Bernier, Ilya Fainberg, Karen Maes, Lindsay Shelton, Mats Necker, Negar Shahbaz, Nick Doelman, Paulien Buskens, Sara Lagerquist, Tricia Sinclair, Ulrikke Akerbæk, and many more, it looks like the E in #EPPC24 stands for Epic!   Click the image below for a full run down of the exciting sessions planned, and remember, you'll need to move quickly for tickets to next year's event!       AI Community Conference - New York - Friday 21st June Check out the AI Community Conference, which takes place at the Microsoft Corporate building on Friday 21st June at 11 Times Square in New York City. Here, you'll have the opportunity to explore the latest trends and breakthroughs in AI technology alongside fellow enthusiasts and experts, with speakers on the day including Arik Kalininsky, Sherry Xu, Xinran Ma, Jared Matfess, Mihail Mateev, Andrei Khaidarov, Ruven Gotz, Nick Brattoli, Amit Vasu, and more. So, whether you're a seasoned professional or just beginning your journey into AI, click the image below to find out more about this exciting NYC event.       TechCon365 & Power Platform Conference - D.C. - August 12-16th ** EARLY BIRD TICKETS END MAY 31ST! ** Today's the perfect time to grab those early bird tickets for the D.C. TechCon365 & PWRCON Conference at the Walter E Washington Center on August 12-16th! Featuring the likes of Tamara Bredemus, Sunny Eltepu, Lindsay Shelton, Brian Alderman, Daniel Glenn, Julie Turner, Jim Novak, Laura Rogers, Microsoft MVP, John White, Jason Himmelstein, Luc Labelle, Emily Mancini, MVP, UXMC, Fabian Williams, Emma Wiehe, Amarender Peddamalku, and many more, this is the perfect event for those that want to gain invaluable insights from industry experts. Click the image below to grab your tickets today!         Power Platform Community Conference - Sept. 18-20th 2024 Check out some of the sessions already planned for the Power Platform Community Conference in Las Vegas this September. Holding all the aces we have Kristine Kolodziejski, Lisa Crosbie, Daniel Christian, Dian Taylor, Scott Durow🌈, David Yack, Michael O. and Aiden Kaskela, who will be joining the #MicrosoftCommunity for a series of high-stakes sessions! Click the image below to find out more as we go ALL-IN at #PPCC24!       For more events, click the image below to visit the Community Days website.                                            

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Top Solution Authors
Top Kudoed Authors
Users online (2,059)