web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create a contact in Ou...
Power Apps
Unanswered

Create a contact in Outlook contact folder - Example need

(0) ShareShare
ReportReport
Posted on by 11

Hi at all,

 

i am new in programing "Power Apps" ;=)

I filled this code in my first power app and it is working fine:

 

 

 

 

Office365Outlook.ContactPostItemV2(
 DropdownKontaktordner.SelectedText.id;
 If(
 IsBlank(ThisItem.Vorname);
 " ";
 ThisItem.Vorname
 );
 Table(
 {
 Value: If(
 IsBlank(ThisItem.Telefon_weitere_Nummer);
 " ";
 ThisItem.Telefon_weitere_Nummer
 )
 }
 );
 {
 companyName: If(
 IsBlank(ThisItem.Firma1);
 " ";
 ThisItem.Firma1
 );
 surname: If(
 IsBlank(ThisItem.Nachname);
 " ";
 ThisItem.Nachname
 );
 mobilePhone: If(
 IsBlank(ThisItem.Handy);
 " ";
 ThisItem.Handy
 );
 businessPhones: {
 Value: If(
 IsBlank(ThisItem.Telefon_gesch_1);
 " ";
 ThisItem.Telefon_gesch_1
 )
 };
 businessHomePage: If(
 IsBlank(ThisItem.WWW);
 " ";
 ThisItem.WWW
 );
 emailAddresses: Table(
 {
 address: If(
 IsBlank(ThisItem.EMailAdresse);
 " ";
 ThisItem.EMailAdresse
 );
 name: If(
 IsBlank(ThisItem.EMailAdresse);
 " ";
 ThisItem.EMailAdresse
 )
 };
 { address: "test@qwe.ecc"; name: "Test" }
 )
 }
)

 

 

 

 

I tryed to fill the some bussiness adress, but still get an error that the type is not correct.

I know that the businessAddress: is from typ: record.

 

What i need is some example how to define the in my code?

 

Also, I wondering about the MSDN doucumentation: i must instert vom ";" operations that it will become to work.

SteKoLos_0-1630440173013.png

In the doucumentation there are "," operators.

 

Anyway,i looking for an example how to declare the type of record for the businessAdress.

Hope any could help me..

I would not do this with an flow.

 

Kind regards

Stefan

 

 

I have the same question (0)
  • Verified answer
    SteKoLos Profile Picture
    11 on at

    Found Solution for the problem "," and ";" Build global support into canvas apps - Power Apps | Microsoft Docs

     

    Found also a solution for do the defintion for a typ of record:

    Hope that will help other people too.

     

    ClearCollect(
     Geschaeftadresse1;
     {
     city: ThisItem.Ort;
     countryOrRegion: ThisItem.Land;
     postalCode: ThisItem.PLZ;
     state: "";
     street: ThisItem.Strasse
     }
    );;
    
    Office365Outlook.ContactPostItemV2(
     DropdownKontaktordner.SelectedText.id;
     If(
     IsBlank(ThisItem.Vorname);
     " ";
     ThisItem.Vorname
     );
     Table(
     {
     Value: If(
     IsBlank(ThisItem.Telefon_weitere_Nummer);
     " ";
     ThisItem.Telefon_weitere_Nummer
     )
     }
     );
     {
     companyName: If(
     IsBlank(ThisItem.Firma1);
     " ";
     ThisItem.Firma1
     );
     surname: If(
     IsBlank(ThisItem.Nachname);
     " ";
     ThisItem.Nachname
     );
     mobilePhone: If(
     IsBlank(ThisItem.Handy);
     " ";
     ThisItem.Handy
     );
     businessPhones: {
     Value: If(
     IsBlank(ThisItem.Telefon_gesch_1);
     " ";
     ThisItem.Telefon_gesch_1
     )
     };
     businessHomePage: If(
     IsBlank(ThisItem.WWW);
     " ";
     ThisItem.WWW
     );
     emailAddresses: Table(
     {
     address: If(
     IsBlank(ThisItem.EMailAdresse);
     " ";
     ThisItem.EMailAdresse
     );
     name: If(
     IsBlank(ThisItem.EMailAdresse);
     " ";
     ThisItem.EMailAdresse
     )
     };
     {
     address: "test@qwe.ecc";
     name: "Test"
     }
     );
     businessAddress: First(Geschaeftadresse1)
     }
    )

    Hope that will help other people too.

     

    Kind regards

    Stefan

     

    https://www.ldap2doc.de 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 802 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 273

Last 30 days Overall leaderboard