filemaker_record_deleter/
filemaker_record_deleter.rs

1use filemaker_lib::Filemaker;
2use anyhow::Result;
3
4#[tokio::main]
5async fn main() -> Result<()> {
6    Filemaker::set_fm_url("https://fm.example.com/fmi/data/vLatest")?; // Replace with actual filemaker server url
7    let username = "your_username";
8    let password = "your_password";
9    let database = "your_database";
10    let table = "your_table";
11    let filemaker = Filemaker::new(username, password, database, table).await?;
12
13    // Record ID to delete
14    let record_id = 123; // Replace with the actual record ID
15
16    // Delete the record
17    let result = filemaker.delete_record(record_id).await?;
18    println!("Record deleted successfully: {:?}", result);
19
20    Ok(())
21}